PDA

Click to See Complete Forum and Search --> : how can i use (LOCK)


newDay
Oct 23rd, 2002, 12:38 PM
Hi
how are u every boudy

i tried to use the prefix ( LOCK)
but the assembler gave me this error
(instruction prefix not allowed) :mad:


how can i use this inst.

if u can
Plz. give the source code for this inst.

CornedBee
Oct 24th, 2002, 05:16 PM
LOCK can only be used with these instructions:
BT, BTS, BTR, BTC mem, reg/imm
XCHG reg, mem
XCHG mem, reg
ADD, OR, ADC, SBB, AND, SUB, XOR mem, reg/imm
NOT, NEG, INC, DEC mem
and only with system privileges (that is, a windows or linux app can't use it).