CS401 Assignment No 01 Fall 2019 Solution & Discussion
CS401 Computer Architecture and Assembly Language Programming Assignment 1 Solution Fall 2019
Please carefully read the following instructions before attempting assignment.
It should be clear that your assignment would not get any credit if:
You should concern the recommended books to clarify your concepts as handouts are not sufficient.
You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc. will not be accepted.
No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.
If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard. For any query, feel free to email at firstname.lastname@example.org
Save your complete VUID in memory using Base Register Indirect + Offset addressing mode (if last digit of your VUID is Odd) or Indexed Register Indirect + Offset addressing mode (if last digit of your VUID is even).
This assignment will give hands on experience of how to run assembly language code using DOSBox and NASM. First, you have to define labels for storing your VUID and then store each alphabet/digit of VUID, step by step, in to any general purpose registers. Finally, store the alphabet/digit from general purpose register to respective memory location (which you have defined by label in above step).
Addressing Modes to use:
In order to access VUID and storing it in memory, you have to use ONE of the following addressing modes:
What to Submit:
After writing your code, open DOSBox and run NASM (as described in video tutorial shared in Announcement page of this course). Assemble the code using nasm command and take screenshot. After that, open the COM file in debugger (AFD).
Run your code by pressing F1 key until last statement of code is reached. At this stage, Data Window # 2 of AFD should display your complete VUID (at consecutive locations; see below example). Also take screenshot of AFD.
Your assignment must be submitted as a SINGLE WORD document (DOC or DOCX) with:
NOTE: When you take screenshot of compilation step and AFD, take screenshot of whole screen, not of DOSBox and AFD. Cropping or any tempering with screenshot will result in ZERO marks.
Suppose a student VUID is BC123456789. The last digit of this VUID is 9 which is an Odd number. So, this student will use Base Register Indirect + Offset addressing mode to solve this assignment.
Sample screenshot of final output:
Please Discuss here about this assignment.Thanks
Our main purpose here discussion not just Solution
Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.
P.S: Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”
Then copy Questions from assignment file and paste in Discussion.
+ http://bit.ly/vucodes (For Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (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)
SOLUTION PLZ ?
Anyone please discuss the solution.
solution idea chaheya
plzz help anyone???
Cs401 idea sol
bhai afd py open kia ye code, lakin assignment ki mutaiq nae show ho raha
t think its not correct answer