Question for DF about the A20 Code
Posted: Fri Sep 15, 2006 11:13 am
I've noticed with your A20 Wait routines you use jz/jnz then jmp... like below...
Is there any particular reason for this? Is the extra jump designed to eat some clock cycles up (like the 65535 time-out loop)?
Just wondering, as then you could redesign them as such...
I wouldn't want to deviate from your code if there is a particular design approach you took. Any advisement would be appreciated.
PS: Thanks for the great routine
Code: Select all
a20wait:
.l0: in al,0x64
test al,2
jz .l2
jmp .l0
.l2: ret
a20wait2:
.l0: in al,0x64
test al,1
jnz .l2
jmp .l0
.l2: ret
Just wondering, as then you could redesign them as such...
Code: Select all
a20wait:
in al,0x64
test al,2
jnz a20wait
ret
a20wait2:
in al,0x64
test al,1
jz a20wait2
ret
PS: Thanks for the great routine