TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: THOMAS GOHEL
date: 1998-04-05 00:00:00
subject: Re: pb3.5:asm shl di,6

From: author@pbsound.snafu.KILL.SPAM.de (Thomas Gohel)
Subject: Re: pb3.5:asm shl  di,6   why dont it werk?
 
 
Hello Krogg !!
 
> 13h in powerbasic 3.5 and ran in to an error trying the following:
> asm     shl     di,6     <------------this line gives error
>
> this is what i get  "Error 497: Assembler syntax error"
That's correct. The PowerBASIC/DOS Inline Assembler supports only the 8086
instruction set and your opcodes are from the 10186, that's all.
 
An solution for your problem, would be:
 
          ! mov cl, 6
          ! shl di, cl  (4 steps on a Pentium, 8-30 on a 486 cpu)
 
Regards,
 
                             ----------------
                                /
                              /  h o m a s
 
email  : author@pbsound.snafu.de (without 'Anti Spam Domain' )
www    : http://www.snafu.de/~pbsound/ (PowerBASIC's Home in Germany)
         PBSOUND - The Sound Blaster Toolkit, PowerBASIC-FAQ, PowerBASIC-
         sources & toolboxes, PowerBASIC on Web, PowerBASIC News and much
         more or less important PowerBASIC stuff.
fax/bbs: +49-30-47300910 (VFC,V34+,X75,ISDN,CCB / 9600-128000bps)
 
*** QwkNews (tm) v2.1
 * [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.