(from Ralph Brown interrupt list)
INT 15 AX=2400 disable A20
INT 15 AX=2401 enable A20
INT 15 AX=2402 query status A20
INT 15 AX=2403 query A20 support (kbd or port 92)
Return:
If successful: CF clear, AH = 00h
On error: CF set, AH = status
Status: 01h keyboard controller is in secure mode
86h function not supported
For AX=2402 the status (0: disabled, 1: enabled) is returned in AL
For AX=2403 the status (bit 0: kbd, bit 1: port 92) is returned in BX
Note that this could work in your real hardware, but could crash in another one... A20 is a bad thing! People hate it but it continue to exist!
The best way to enable A20 gate without problem would be to begin with the keyboard controller and continue with the other methods. At every step you could test if A20 has been enabled... in this case you can stop this boring routine and continue with the next one
