mirror of https://github.com/acidanthera/audk.git
17 lines
273 B
NASM
17 lines
273 B
NASM
|
DEFAULT REL
|
||
|
SECTION .text
|
||
|
|
||
|
; INT32
|
||
|
; EFIAPI
|
||
|
; TestAndClearBit (
|
||
|
; IN INT32 Bit, // rcx
|
||
|
; IN volatile VOID* Address // rdx
|
||
|
; );
|
||
|
global ASM_PFX(TestAndClearBit)
|
||
|
ASM_PFX(TestAndClearBit):
|
||
|
lock
|
||
|
btr [rdx], ecx
|
||
|
sbb eax, eax
|
||
|
ret
|
||
|
|