| | |
MASM int 10h help
![]() |
•
•
Join Date: Oct 2007
Posts: 1
Reputation:
Solved Threads: 0
hi Pals,
i have a problem with MASM interrpt 10h.
i want to colour s portion of the screen using the 10h interrupt after changinging to the video mode. Please help
Please help;
i have a problem with MASM interrpt 10h.
i want to colour s portion of the screen using the 10h interrupt after changinging to the video mode. Please help
Assembly Syntax (Toggle Plain Text)
.model small .stack 100h .386 .data .code main PROC mov ax,@data mov ds,ax mov ah, 0 mov al, 3h int 10h ; set video mode 80*25 mov ah,1 int 21h ;---- code for colouring the screen mov ax, 0600h mov ch, 1 ; size to set colu mov cl, 1 mov dh, 24 mov dl, 78 mov bh, 100b int 10h ;----------------------------------------------- mov ah ,04ch ; exit interrupt int 21h ; call sys interrupt main ENDP END main
Please help;
Make sure you are using a good reference when you use interrupts. Also, try to reduce the number of instructions you use.
Hope this helps.
Assembly Syntax (Toggle Plain Text)
;set the video mode to CGA 80 x 25, 16-color mov ax, 0300h int 10h ;wait for a keypress mov ah, 1 int 21h ;clear the screen to a specific character attribute mov ax, 0600h ; scroll all lines up == clear screen mov bh, 07h ; light gray on black mov cx, 0 ; upper-left = 0, 0 mov dx, 184Fh ; lower-right = 24, 79 int 10h
Hope this helps.
Last edited by Duoas; Oct 27th, 2007 at 7:31 pm.
![]() |
Similar Threads
- String to real and real to String (Assembly)
- First Timer and trying to learn the basics (Please help me ASAP) (Assembly)
- Codes FOr VGA/SVGA using ports and not interrupts (Assembly)
- TASM Begginer (Assembly)
- Help... assembly in Dev C++ (C++)
Other Threads in the Assembly Forum
| Thread Tools | Search this Thread |






