TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: FRANS FLIPPO
from: HUGH NOLAND
date: 1997-12-28 09:51:00
subject: Simple Dos/Bios calls

 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)

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™.