http://git.dujemihanovic.i2p?p=nameless-os.git;a=blob;f=boot/x86/stage3/a20.s;h=8748dde580673653b15db546ade7739a1db13ac3
search: re 8748dde580673653b15db546ade7739a1db13ac3 [nameless-os.git] / boot / x86 / stage3 / a20.s 1 %macro in_wait 0 2 push ax 3 %%loop: 4 in al, 0x64 5 test al, 2 6 jnz %%loop 7 pop ax 8 %endmacro 9 10 %macro out_wait 0 11 push ax 12 %%loop: 13 in al, 0x64 14 test al, 1 15 jz %%loop 16 pop ax 17 %endmacro 18 19 ; CF set = A20 enabled 20 check_a20: 21 push esi 22 push edi 23 push ax 24 mov esi, 0x500 25 mov edi, 0x100500 26 27 mov al, [esi] 28 mov ah, [edi] 29 30 mov [esi], byte 0 31 mov [edi], byte 0xff...