0% found this document useful (0 votes)
41 views1 page

CS401 Assignment 2

This document contains assembly language code that initializes the video display mode to 640x480 with 16 colors (720x400 with 256 colors), clears the screen, and prints the string "CS401_2" at screen coordinates (27,12) using interrupt 10h to call BIOS video services. It then terminates the program. The code sets up the video mode, clears the screen, prints a string, and exits in 3 sentences.

Uploaded by

Andleeb Razzaq
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)
41 views1 page

CS401 Assignment 2

This document contains assembly language code that initializes the video display mode to 640x480 with 16 colors (720x400 with 256 colors), clears the screen, and prints the string "CS401_2" at screen coordinates (27,12) using interrupt 10h to call BIOS video services. It then terminates the program. The code sets up the video mode, clears the screen, prints a string, and exits in 3 sentences.

Uploaded by

Andleeb Razzaq
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/ 1

CS401_2 By Soban Majeed

[org 0x0100]
jmp start
start:
mov ax,0600h
mov bh,20h
mov dl,01h
mov cx,0000h
mov dx,181ah
int 10h
mov ax,0600h
mov bh, 70h
mov dl,01h
mov cx,001bh
mov dx,1834h
int 10h
mov ax,0600h
mov bh,47h
mov cx,0034h
mov dx,184fh
int 10h
mov ah,02h
mov bh,00h
mov dx,0x101b
int 10h
mov ah,6
mov al,0
mov cl,1bh
mov ch,0ch
mov dl,33h
mov dh,18h
mov bh,01110000b
or bh,10000000b
int 10h
mov ax,4c00h
int 21h

CS401_2 By Soban Majeed

You might also like