Member Avatar for gexecuter

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$"

Recommended Answers

All 4 Replies

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

Member Avatar for gexecuter

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?

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.

Member Avatar for gexecuter

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.