dere
dere

Reputation: 29

How can I clear the entire screen in emu8086?

I am using the graphical mode (AL=12h) and I want to draw some lines and then clean the screen and again draw some lines.

mov ah,06
mov al,00
mov bh,07
mov ch,00
mov cl,00
mov dh,24
mov dl,79
int 10h

I used the above code but it stopped at int 10h.
I want to do something like this:

draw_vrt 320,0

draw_hrz 0,240   

mov ah,06
mov al,00
mov bh,07
mov ch,00
mov cl,00
mov dh,24
mov dl,79
int 10h
    
draw_vrt 320,0
            
draw_hrz 0,240

Upvotes: 1

Views: 2779

Answers (1)

Nathan Herschberg
Nathan Herschberg

Reputation: 21

This set-video-mode (AH=0 / int 10h) BIOS call worked for me, setting video mode = 3

;Clear screen
mov ax, 3
int 10h

Upvotes: 2

Related Questions