Subject: Re: Rooki needs Help please ! Date: 24 Mar 1998 06:35:12 GMT From: silva@dowco.com (Silva) Organization: dowco.com internet (ISP) Newsgroups: comp.lang.asm.x86 Harald.Zupp@t-online.de (Harald Zupp) wrote: >I have since up a Shareware CdRom a real mad >in Assembler writed Intro found. >Unfortunately get i by the Attempt this program along with my ancient >Assembler TASM 1.0 (1988) to compilieren Error Messages relate to (16 >times) always up shr or shl Commands. >Example: >Shr di,2 >Shl cl,3 >i see >>>Rotate count out of Range<< >Aloha people what does have that stand for ?? >How can I that put down ?? Your compiler is checking for spelling errors and thinks you are writing assembler code for an 8088 or 8086 CPU. I do not know if TASM 1.0 supports higher level CPUs, but later versions should support them. You have to tell the compiler you are making assembly code for a higher level CPU, so for a 80286 you use .286 and for a 80386 you use .386 Below is an example, but remember it is up to you to make sure the computer is a 80286 or later computer... (there are example programs and routines for that). code segment assume cs:code, ds:code, ss:code, es:code org 0100h start: shr di,1 ;in 8086 mode you are allowed shl cl,1 ;to use only 1 or CL shr di,cl shl ch,cl ;default mode is 8086 mode ;tell compiler you are making 80286 code .286 shr di,2 ;in 80286, 80386, 80486...mode shl cl,2 ;you are allowed to use 1...31 or CL shr di,1 shl cl,1 shr di,cl shl ch,cl ;tell compiler you are making 8086 (default) code again .8086 exit: mov ax,4C00h ;exit to DOS and return(0) int 21h code ends end start