TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: LEIGH MORRESI
from: TOM TORFS
date: 1997-08-25 09:43:00
subject: WATCOM and C++

Leigh Morresi wrote in a message to All:
 LM>          hey!, ive got WATCOM V11.0,  and wondering how do you do
 LM> simple inline assembly, without the use of confusing pragma's a
 LM> stuff??
 LM> i mean, is it possible todo it like borlands C?, ie asm; {
 LM> lalalalal };  ???? 
You'll have to use something like this:
#pragma aux rord =   \
   "xor ch,ch"       \
   "and cl,31"       \
   "rord_loop:"      \
   "shr dx,1"        \
   "rcr ax,1"        \
   "jnc rord_nocf"   \
   "or dh,10000000b" \
   "rord_nocf:"      \
   "loop rord_loop"  \
   parm [dx ax] [cl] \
   value [dx ax]     \
   modify [cx];
greetz,
Tom
tomtorfs@mail.dma.be
--- timEd/2 1.10+
---------------
* Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)

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™.