mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
The way our matching system works we have to make NOHLE an instruction flag rather than an byte code; by the time we run the byte code interpreter we have already picked an instruction pattern once and for all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 lines
261 B
NASM
16 lines
261 B
NASM
bits 32
|
|
|
|
xacquire lock add [esi],eax
|
|
xacquire xchg [eax],ebx
|
|
xrelease lock mov [eax],ecx
|
|
xrelease mov [eax],ecx
|
|
xacquire add ecx,[eax]
|
|
xrelease mov [eax],ecx
|
|
|
|
; Different opcodes!
|
|
mov [sym],eax
|
|
xrelease mov [sym],eax
|
|
xacquire mov [sym],eax
|
|
|
|
sym dd 0
|