We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Assignment No. 1
Graded
Semester Spring 2016
Computer Architecture and Assembly Language Programming– CS401
Total Marks: 20

Due Date: 16 May,2016
Objective:
The assignment has been designed to enhance your knowledge about how to write assembly program using branching.

Instructions:
Please read the following instructions carefully before solving & submitting assignment:

1. The assignment will not be accepted after due date.
2. Zero marks will be awarded to the assignment that does not open or the file is corrupt.
3. The assignment file must be an MS word (.doc) file format; Assignment will not be accepted in any other format.
4. Zero marks will be awarded to the assignment if copied (from other student or copied from handouts or internet).

For any query about the assignment, contact only at CS401@vu.edu.pk
Do not post queries related to assignment on MDB.

GOOD LUCK

Question: 1 [20 Marks]

Write an assembly language program to find the smallest number from an array of following ten numbers. Explain each instruction of program and also provide/paste snapshot of your assemble and debug program result which will be run in AFD (A Full Screen Debugger) window showing the executed code final results in AX register.

Numbers : 20, 50, 30, 14, 19, 3, 5, 6, 40, 8 [Program:5, Explantion:3,Snashot:2]

Question: 2
Write an assembly language program to find the largest number from an array of following ten numbers. Explain each instruction of program and also provide/paste snapshot of your assemble and debug program result which will be run in AFD (A Full Screen Debugger) window showing the executed code final results in AX register.

Numbers : 10, 40, 20, 14, 19, 13, 50, 6, 60, 14 [Program:5, Explantion:3,Snashot:2]

Note: Provide snapshot of your program which will be run in AFD window. You will not get any marks for copied assignment.


+ 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)


Views: 17805

Attachments:

Replies to This Discussion

Thanks............bro

Thanks Rana G

Thanks Rana G

Its showing error :24: symbol; 'L2' redefined

in which question ?

Rana g , App  kis assignment Error  Show kar rahi hai 

[ORG 100h]
JMP START

Num: DW 20, 50, 30, 14, 19, 3, 5, 6, 40, 8

L2: MOV AX, SI ; Save Small number in AX
ADD BX, 2 ; bx +=2; Point to next character
RET
START:
MOV BX, 0
MOV AX, 0
MOV AX, [Num + BX]

MOV CX, 10

L1: CMP AX , [Num + BX]
JLE L2
MOV AX, [Num +BX} ; AX Contains Minimum number
L2: ADD BX, 2
Loop L1 ; Poinyt next Numbetr

MOV AX, 0x4X00
INT 0x21

Some thing is wrong 

YES FIRST WALY CODE MAE ERROR DY RAHA HAI

EX04.ASM:21:ERROR: SYMBOL "L2" REDIFINED

SECOND CODE MAE B ERROR DY RAHA HAI

my doxbox not working fine i need help

sorry typing mistake ho gai Line no. 21 aor Line no 25 pe L1 ki Jaga L3 likh lo tu shi ho jaye ga errror

Aslam o ALikum  Rana G 

I have done my Assignment , Eik Sawal tha k us ka sourse code just Word my type karana hai ya us ki bhi snapshoot leni hai , 

Please reply fast 

kindly help us and give us the text file????plzzz

RSS

Looking For Something? Search Here

HELP SUPPORT

This is a member-supported website. Your contribution is greatly appreciated!

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

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

.