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)
|