0

Hello, i have a question of assemble using the video mode, when i run the program why only half of the screen is painted?,the whole screen should be painted, any help would be welcome please.

this is the code:

org 100h

mov ah, 00 ; video
mov al, 03
int 10h

mov ah, 06 ; paint
mov al, 00
mov bh, 14h
mov cx, 0000
mov dx, 184fh
int 10h

mov ah, 02 ;position
mov bh, 00
mov dh, 0dh
mov dl, 22h
int 10h

mov ah, 09 ;print
mov dx, name
int 21h

mov ah, 4ch
int 21h

name: db "Hello$"

3
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by gexecuter
0

I tried typing it in to debug, and it worked ok for me.

yeah , but did it paint the full screen when the command prompt is was maximized?

0

my guess is the screen is not 24x79. Try increasing the value of dx to test that out unless, of course, you have already thought of that and tried it.

0

my guess is the screen is not 24x79. Try increasing the value of dx to test that out unless, of course, you have already thought of that and tried it.

thx i didn`t thought of that, anyway i guess i will mark this as solved

This question has already been answered. Start a new discussion instead.
Be sure to adhere to our posting rules.