Re: Question about the A20 line



alex schrieb:
>
> I've hit a snag when testing my code on various different pc's, in which
> the a20 enabling code works on about 60% of systems i try, and others
> fail..
>
> i've looked at a few examples of code that enables the a20, in other
> peoples work..

;----------------------------
EnableA20: call W_8042
jnz BACK
mov al, 0D1h
out 64h, al
call W_8042
jnz BACK
mov al, 0DFh
out 60h, al
W_8042: xor cx, cx
STATUS: in al, 64h
and al, 2
loopnz STATUS
BACK: ret
;----------------------------

Dirk

.