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.
Duoas
Postaholic
2,043 posts since Oct 2007
Reputation Points: 1,140
Solved Threads: 229