We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Computer Architecture and Assembly Language Programming– CS401 Assignment No. 2 Solution & Discussion Spring 2016 Due Date Jun 29, 2016

Write an assembly language code to print your VU ID and Name as shown in example figure given below
using String Instructions.VU ID and Name text color must be green and it should have blue background. Explain each instruction of program and also provide/paste snapshot of final output on the Screen.
Note: Before displaying VU ID and Name on screen, clear the screen. You will not be able to display VU ID and Name on screen in Windows so you will have to use the DOSBOX

1. Print your own VU ID and Name on screen otherwise your file will be awarded zero marks.

2. You will submit your code written in Word file.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 7705

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

Discussion started for the second assignment please post assignment related issues. Discuss assignment related problems to get better idea to solve this.

For DosBox: Click here

For Notepad++: Click here

For debug.exe: Click here

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

ye tu bahot asan 

how is?

kaisy easy hai bro mujhy to koi samjh nai ati assembly language ki.aap ko kaisy aa jati hai

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

Here is the solution it is not perfect one You all are advised to manipulate code and make it exactly same to given one.

===============================================================================
[org 0x0100]
jmp start
message: db 'BC140402312 Imtiaz Azeem'
; 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 left 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
==============================================================================

Attachments:

Write an assembly language code to print your VU ID and Name as shown in example figure given below using String Instructions.VU ID and Name text color must be green and it should have blue background.

Thanks Imtiaz Bhai.. but VU ID and Name text color must be green and it should have blue background.??

imtiaz bhai 

what commands you have use in dosbox

mount m: d:\assembly

nasm exo1.sm -oex01.com -l ex01.list

and what next?

mount m d:\assembly

m:

nasm filename.asm -o filename.com -l filename.lst

then filename.com wali command deni ha and enter 

kafi time ho gya 401 prhy hue exact yad ni ap ye steps try kr k dekh len

RSS

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.