The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/TestAndClearBit.asm to Ia32/TestAndClearBit.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16316 6f19259b-4bc3-4df7-8a09-765794883524
17 lines
269 B
NASM
17 lines
269 B
NASM
SECTION .text
|
|
|
|
; INT32
|
|
; EFIAPI
|
|
; TestAndClearBit (
|
|
; IN INT32 Bit,
|
|
; IN volatile VOID* Address
|
|
; );
|
|
global ASM_PFX(TestAndClearBit)
|
|
ASM_PFX(TestAndClearBit):
|
|
mov ecx, [esp + 4]
|
|
mov edx, [esp + 8]
|
|
lock btr [edx], ecx
|
|
sbb eax, eax
|
|
ret
|
|
|