Skip to main content

CS401 Assignment No. 2 Solution 2016 Due Date Jun 29






CS401 Assigment 

; print string using bios service
[org 0x0100]
jmp start
message: db 'Mc...... name'
; subroutine to clear the screen
clrscr: push es
push ax
push cx
push di
mov ax, 0xb800
mov es, ax ; point es to video base
xor di, di ; point di to top right column
mov ax, 0x0720 ; space char in normal attribute
mov cx, 3000 ; number of screen locations
cld ; auto increment mode
rep stosw ; clear the whole screen
pop di
pop cx
pop ax
pop es
ret
start:
call clrscr;
mov ah, 0x13 ; service 13 - print string
mov al, 1 ; subservice 01 ? update cursor
mov bh, 0 ; output on page 0
mov bl, 7 ; normal attrib
mov dx, 0x0F07 ; row 10 column 3
mov cx, 24 ; length of string
push cs
pop es ; segment of string
mov bp, message ; offset of string
int 0x10 ; call BIOS video service
mov ax, 0x4c00 ; terminate program
int 0x21

Comments

Popular posts from this blog

IT Intern (Microsoft Product)

For more discuss and ask question join this group   https://www.facebook.com/groups/143792885956764/ Solved   By : Tahir Siddiqui(Mani) BC-140201235@Vu.edu.pk Job Description We offer Internship in IT 03 months Unpaid internship Responsible for Managing IT Products/Services. Maintains relationships with clients by providing support, information, and guidance. Good presentation skills. Good oral & written communication knowledge of MS Office 50%. Traveling Required Team Work Candidate must have a Motor Bike and laptop. Fresh candidates are encouraged to apply. Job Details Industry: Information Technology ...

cs304 Assimgt 2 2016

Assignment No. 02 Semester: Spring  2016 Object Oriented Programming – CS304 Total Marks: 20 Due Date: July 21, 2016 Objectives: To get a hands on experience of using existing class as base class and implement inheritance. Instructions: Please read the following instructions carefully before submitting assignment: It should be clear that your assignment will not get any credit if: §   The assignment is submitted after due date. §   The assignment is submitted via email. §   The assignment is copied from Internet or from any other student . §   The submitted assignment does not open or file is corrupt. §   It is in some format other than .cpp (Code File). Note: All types of plagiarism are strictly prohibited. For any query about the assignment, contact at CS304@vu.edu.pk Case Study With the technological innovation, th...