Hi. This piece of code is suppose to scroll the whole screen 3 lines up. The clearScreen procedure is never called, yet, if I leave it in the code, the program clears the screen. If I comment it out, the program scrolls the screen 3 lines up just like it should. Does anyone know whats going on? I'm using nasm on DOS 6.22 and Windows XP command prompt. The results are the same. My command to assemble is "nasm test2.asm -f bin -o test2.com". Thank you for any help.
Mike
[BITS 16]
[ORG 0x0100]
[SECTION .text]
Start:
mov al, 3
call scrollXLines
mov ax, 4c00h
int 21
;clearScreen:
; mov CX, 0
; mov DX, 7924
; mov al, 0
; mov bh, 7h
; mov ah, 6h
; int 10h
; ret
scrollXLines: ; Requires al to be set to number of lines to scroll.
mov CX, 0
mov DX, 7924
mov al, 3
mov bh, 7h
mov ah, 6h
int 10h
ret