fbpx
Share:

Dear Students! Please share your Assignment files as you recieve in your lms so it can be discussed/solved timely. Share assignments files by click on UPLOAD button.

[Solved] CS401 Assignment 1 Solution Fall 2019  

  RSS

admin
(@admin)
Admin
Joined: 1 year ago
Posts: 2
November 8, 2019 9:58 pm  

CS401 Computer Architecture and Assembly Language Programming Assignment 1 Solution Fall 2019


 

Please carefully read the following instructions before attempting assignment.

RULES FOR MARKING

It should be clear that your assignment would not get any credit if:

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • Strict action will be taken if submitted solution is copied from any other student or from the internet.

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. 

Topic Covered:

  • Basic DOSBox and NASM understanding to run assembly code Various Addressing modes to access memory

NOTE

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 [email protected]

 

Problem Statement:

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

Detailed Instructions:

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:

  • Base Register Indirect + Offset (only if last digit of your VUID is Odd)
  • Indexed Register Indirect + Offset (only if last digit of your VUID is Even) NOTE: Zero marks will be awarded, if you do not follow proper addressing mode.

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:

  • Code written in Word
  • Screenshot of compilation step (DOSBox)
  • Screenshot of AFD

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.

Example:

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:

 

Helping Material:

  • Detailed video tutorial of how to use DOSBox and NASM is already shared with you in Announcement page of this course
  • Command to manipulate Data Windows of AFD is mentioned in AFD tutorial (link is given in the same Announcement)
  • Use ASCII table for first two alphabets of your VUID

Quote
admin
(@admin)
Admin
Joined: 1 year ago
Posts: 2
November 8, 2019 10:00 pm  

CS401 Computer Architecture and Assembly Language Programming Assignment 1 Solution Fall 2019


 

Students having same subject can start discussion here to Solve assignment quiz and can clear their concepts until solution is provided. 🖐️


ReplyQuote
hassana
(@hassana)
New Member
Joined: 2 weeks ago
Posts: 1
November 11, 2019 4:08 pm  

It a base register indexed and offset mainly but when run in dosbox a run error accrues . Give your opinion?

 


ReplyQuote
91718161
(@faizan-ahmad)
New Member
Joined: 2 weeks ago
Posts: 3
November 13, 2019 12:58 am  

Solution please 


ReplyQuote
shabana
(@shabana)
New Member
Joined: 4 months ago
Posts: 1
November 13, 2019 2:43 pm  

this is very tough assignment ... it is not possible


ReplyQuote
rkd_7860
(@rkd_7860)
New Member
Joined: 1 week ago
Posts: 1
November 14, 2019 12:10 am  

i also looking for idea solution... 😴 but not find yet!!

rkd786


ReplyQuote
guru
 guru
(@guru)
New Member
Joined: 1 week ago
Posts: 3
November 14, 2019 11:46 am  

plz koe cs614 assignment ks solution day 


ReplyQuote
guru
 guru
(@guru)
New Member
Joined: 1 week ago
Posts: 3
November 14, 2019 11:46 am  

me


ReplyQuote
admin
(@admin)
Admin
Joined: 1 year ago
Posts: 2
November 14, 2019 7:21 pm  

Get solution idea from this video: > https://www.youtube.com/watch?v=j6v53QAT5TA

 

This post was modified 1 week ago by admin

ReplyQuote
admin
(@admin)
Admin
Joined: 1 year ago
Posts: 2
November 14, 2019 8:53 pm  

CS401 Computer Architecture and Assembly Language Programming Assignment 1 Solution Fall 2019


 

[org 0x0100]
jmp start
;ascii code of B is 66
;ascii code of C is 67
VUID: dw 0 ;This is VU id

start: mov si,VUID ; assign
mov word [si+0],66;
mov word [si+2],67
mov word [si+4],1;
mov word [si+6],2
mov word [si+8],3;
mov word [si+10],4
mov word [si+12],5;
mov word [si+14],6;
mov word [si+16],7;
mov word [si+18],8
mov word [si+20],9;

mov ax, 0x4c00 ; terminate program

int 0x21

 

Download attachment for codes in text file.

This post was modified 1 week ago by admin

ReplyQuote
Share:

Please Login or Register