Quantcast
Channel: x86 Assembly - Programmers Heaven
Viewing all articles
Browse latest Browse all 152

Starting in real mode with Gate A20 enabled

$
0
0
[b][red]This message was edited by zenassem at 2002-8-25 13:14:40[/red][/b][hr]
How can I have my computer start in protected mode with a20 enabled?

I am running win98Se: starting in DOS mode. loading Himem.sys
Is the computer in real modew when Booting to command prompt under win98?
Can I obtain a boot disk that starts my computer in real mode with a20 enabled?

edit
Shouldn't this work to enable a20
enablea20:
mov al,0d1h
out 64h,al
call a20wait
mov al,0dfh
out 60h,al
call a20wait
mov al,0ffh
out 64h,al
call a20wait
ret

a20wait:
in al,64h
jmp $+2
and al,2
jnz a20wait
ret



processor: amd k6/233






Viewing all articles
Browse latest Browse all 152

Trending Articles