HN> mov ah,9
HN> mov al,'A'
HN> mov bh,0 ;text page number, usually 0
HN> mov bl,0eh ;bg and fg color attributes
HN> mov cx,1 ;print character just once
FF> just curious: is any checking done here..? if i try to put 70 characters
FF> starting from the lower right corner of my screen (24,79 or so), what
FF> happens?
Interesting question. To which I don't know the answer. I've done a
little experimenting, but without any convincing results. The following
is an excerpt from Dave Williams' Technical Reference Manual and leads
me to speculate that what happens probably depends on your BIOS:
---------------------------------------------------------------------------
Function 09h Write Character and Attribute
at current cursor position
entry AH 09h
AL ASCII code of character to display
BH display page number - text mode
BL attribute (text modes) or color (graphics modes)
CX number of characters to write
return none
note 1) CX should not exceed actual rows available, or results may be
erratic.
2) Setting CX to zero will cause runaway.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88)
|