Make sure you are using a good reference when you use interrupts. Also, try to reduce the number of instructions you use.
;set the video mode to CGA 80 x 25, 16-color
mov ax, 0300h
int 10h
;wait for a keypress
mov ah, 1
int 21h
;clear the screen to a specific character attribute
mov ax, 0600h ; scroll all lines up == clear screen
mov bh, 07h ; light gray on black
mov cx, 0 ; upper-left = 0, 0
mov dx, 184Fh ; lower-right = 24, 79
int 10h
Hope this helps.
Last edited by Duoas; Oct 27th, 2007 at 7:31 pm.
Reputation Points: 1140
Solved Threads: 229
Postaholic
Offline 2,039 posts
since Oct 2007