TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: CHRISTIAN IVERSEN
from: BRIAN MCCLOUD
date: 1997-12-26 06:07:00
subject: How to`s (again ;)

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.