Vga in asm.
-
- Berichten: 2.589
Vga in asm.
bij het schrijven van een vga driver in asm vraag ik me af welke variabelen ik dien uit te lezen zodat ik weet of het scherm gestopt is met opvullen.
dit om flikkeringen te vermijden.
Iemand enig idee? Groeten.
dit om flikkeringen te vermijden.
Iemand enig idee? Groeten.
- Berichten: 2.097
Re: Vga in asm.
Assembly Language: The True Language Of Programmers
pagina 57: poort 3dah, bit 3 is vertical retrace
p32: retrace:
pagina 57: poort 3dah, bit 3 is vertical retrace
p32: retrace:
Code: Selecteer alles
WaitRetrace proc pascal far
mov dx,3dah;Input Status Register 1
@wait1:
in al,dx;Bit 3 = 0 if ray is constructing image
test al,8h
jnz @wait1
@wait2:
in al,dx;Bit 3 = 1 if retracing
test al,8h
jz @wait2
ret;Ray is now at the very bottom of the screen
Endp
"Why must you speak when you have nothing to say?" -Hornblower
Conserve energy: Commute with a Hamiltonian
Conserve energy: Commute with a Hamiltonian