enable a20
Posted: Wed Oct 29, 2008 9:21 am
to enable a20 is just send a comand to the keyboard controller?
Code: Select all
MOV AX,2403H ; QUERY A20 GATE SUPPORT
INT 15H
JC @Not_SupportedCode: Select all
IN AL,92H
OR AL,2
OUT 92H,ALCode: Select all
CLI
;===========
;Wait_INPB
;===========
@@:
IN AL,64H
TEST AL,00000010B
JNZ @B
MOV AL,0D0H
OUT 64H,AL
;==========
;Wait_OUTB
;==========
@@:
IN AL,64H
TEST AL,00000001B
JZ @B
IN AL,60H
OR AL,00000010B
MOV BL,AL
;===========
;Wait_INPB
;===========
@@:
IN AL,64H
TEST AL,00000010B
JNZ @B
MOV AL,0D1H
OUT 64H,AL
;===========
;Wait_INPB
;===========
@@:
IN AL,64H
TEST AL,00000010B
JNZ @B
MOV AL,BL
OUT 60H,AL
STI
Of course, you could have consulted the Wiki before asking questions here.mobruan wrote:to enable a20 is just send a comand to the keyboard controller?