CI>I've the one who's been asking insane quesions for the last few days. ;)
CI>So, instead of saying i didn't mean it i'll just give you a couple more ;)
I'll answer the ones I can, but delete the ones I can't.
CI> How do you write to a specific byte in memory in Dos??
the_addr dd 00043267h ; an absolute address
byte_wanted db 63h
mov eax, the_addr
mov bx, ax
and bx, 000Fh
shr eax, 4
mov es, bx
mov al, [byte_wanted]
mov es:[bx], al
CI> Does the video memory start at $A000 on all gfx. cards??
In all video modes better than CGA, the graphics in real mode can be accessed
at segment A000h. Color text modes and CGA graphics are accessed at segment
B800h. Monochrome text and Hercules graphics can be accessed at segment
B000h. These segments are for Real mode.
CI> What is the fastest way (if there are any diffence) to compary a
egister
CI> with the value zero.
One of the following three ways should work (they take the same amount of
time on all processors):
; first method
and ax, ax
; second method
or ax, ax
; third method
test ax, ax
((Cloud))
MauveCloud@juno.com
* OLX 2.2 * Unable to locate Coffee -- Operator Halted!
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)
|