From: Tech@SoftByteLabs.com
Subject: Re: pb3.5:asm shl di,6 why dont it werk?
On Tue, 31 Mar 1998 12:12:38 -0500, Krogg
wrote:
>I was testing(for speed) some inline asm code for plotting points to mode
>13h in powerbasic 3.5 and ran in to an error trying the following:
>asm mov ax,&ha000
>asm mov es,ax
>asm mov bx,y%
>asm mov di,bx
>asm xchg bh,bl
>asm shl di,6 <------------this line gives error
Change it to this...
asm mov cl, 6
asm shl di, cl
SHL can only use 1 or CL
>asm add di,bx
>asm add di,x%
>asm mov al, col?
>asm mov [es:di],al
>this is what i get "Error 497: Assembler syntax error"
>I dunno why it wont work.
>I really wanted to test this code because it uses the shl instead of a
>mul,the shl is supposed to be faster.Can anyone shed some light on this for
>me?
>
>
*** QwkNews (tm) v2.1
* [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)
|