The problem is that the function int 0x10 0x07takes more parameters than you specified. In particular,
- AH = 07 = scroll down the window
- AL = number of lines to scroll (or 0 for all)
- BH =
- CH, CL = ,
- DH, DL = ,
, , , , !
, , 80x25, :
clearScreen:
pusha
mov ax, 0x0700 ; function 07, AL=0 means scroll whole window
mov bh, 0x07 ; character attribute = white on black
mov cx, 0x0000 ; row = 0, col = 0
mov dx, 0x184f ; row = 24 (0x18), col = 79 (0x4f)
int 0x10 ; call BIOS video interrupt
popa
ret
. Ralf Brown .