0% found this document useful (0 votes)
32 views

CPE 005b: Planco, Bernabeth O. March 22, 2017 EC31FB1 Sir. Lance Adrian Valdez

This document contains assembly language code that changes the color of the screen using interrupts and displays the text "DOMINICAN REPUBLIC" on the screen. The code contains sections that set the color (color1, color2, etc.) by changing registers and using interrupt 10h. It then has a text section that outputs each character by changing the DL register and using interrupt 21h. The code ends by using interrupt 21h with AH set to 4Ch to terminate the program.

Uploaded by

bernabeth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

CPE 005b: Planco, Bernabeth O. March 22, 2017 EC31FB1 Sir. Lance Adrian Valdez

This document contains assembly language code that changes the color of the screen using interrupts and displays the text "DOMINICAN REPUBLIC" on the screen. The code contains sections that set the color (color1, color2, etc.) by changing registers and using interrupt 10h. It then has a text section that outputs each character by changing the DL register and using interrupt 21h. The code ends by using interrupt 21h with AH set to 4Ch to terminate the program.

Uploaded by

bernabeth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

CPE 005b

Planco, Bernabeth O. March 22, 2017


EC31FB1 Sir. Lance Adrian Valdez

.model small
.stack 0100h
.data
.code

start:

color1:
mov ax,0600h
mov bh,0F0h
mov cx,0000h
mov dx,184Fh
int 10h

color2:
mov bh,40h
mov cx,0000h
mov dx,0A22h
int 10h

color3:
mov bh,40h
mov cx,0F2Ch
mov dx,184Fh
int 10h

color4:
mov bh,10h
mov cx,002Ch
mov dx,0A4Fh
int 10h

color5:
mov bh,10h
mov cx,0F00h
mov dx,1822h
int 10h
text:
mov ah,02
mov bh,0h
mov dh,12
mov dl, 30
int 10h

mov ah,02
mov dl, 'D'
int 21h

mov ah,02
mov dl, 'O'
int 21h

mov ah,02
mov dl, 'M'
int 21h

mov ah,02
mov dl, 'I'
int 21h

mov ah,02
mov dl, 'N'
int 21h

mov ah,02
mov dl, 'I'
int 21h

mov ah,02
mov dl, 'C'
int 21h

mov ah,02
mov dl, 'A'
int 21h

mov ah,02
mov dl, 'N'
int 21h
mov ah,02
mov dl, 20h
int 21h

mov ah,02
mov dl, 'R'
int 21h

mov ah,02
mov dl, 'E'
int 21h

mov ah,02
mov dl, 'P'
int 21h

mov ah,02
mov dl, 'U'
int 21h

mov ah,02
mov dl, 'B'
int 21h

mov ah,02
mov dl, 'L'
int 21h

mov ah,02
mov dl, 'I'
int 21h

mov ah,02
mov dl, 'C'
int 21h

mov ah,4ch
int 21h

end start

You might also like