mirror of https://github.com/acidanthera/audk.git
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
|
||
|
|