TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: PAT PRIDGEN
from: HUGH NOLAND
date: 1997-10-01 13:49:00
subject: How to Clear Screen

Pat pridgen writes:
PP> ;***************************
PP> ; Attempt to Clear Screen
PP> ;
PP> ; NASM 0.95
PP>       BITS 16
PP>       ORG 0x100
          ^^^^^^^^^
Shouldn't this be org 100h?  My guess is this is your problem.
 
PP>
PP>       SECTION .text
PP>
PP> mov cx,0         ;upper left corner of 80x25 screen
PP> mov dx,184fh     ;lower right corner dh = Row, dl= Col.
PP> mov al,0         ; Clear entire region
PP> mov bh,07h       ;Program Attribute for blanked lines
PP> mov ah, 06h      ; Video service 6: Initialize/scroll
PP> int 10h          ; call video
 
This certainly seems right.
 
PP> I thought I saw something once about an AMI Bios
PP> (I have one) if that helps.
 
My reference mentions a bug in AMI Bios for int 10h function 1.  For function
6 it says nothing about AMI Bios, but does say that "some implementations 
ave
a bug which destroys BP".
 
 
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-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™.