https://www.google.com/contributor/welcome/?utm_source=publisher&utm_medium=banner&utm_campaign=2376261057261409

Search This Blog

Search with our Site

Custom Search

Saturday, November 12, 2016

Cs401 assignment #1 Solution & comment . Due date 14 nov 2016

Computer Architecture and Assembly Language Programming (CS401)
Assignment # 01
Total marks = 20
Deadline Date
14th of November, 2016

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:
Registers
Intel Architecture
Register Architecture
Data Declaration
Addressing Modes
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:
cs401@vu.edu.pk
Questions No 01 10 marks
Write a complete assembly language code for the following pseudo code:
Initialize a variable named NUM1 with 04 as a Hexadecimal Number
Initialize a variable named NUM2 with 08 as a Hexadecimal Number
Initialize a variable named NUM3 with 12 as a Hexadecimal Number
Initialize a variable named NUM4 with 00 as a Hexadecimal Number
Initialize AX with zero 0
Initialize BX with zero 0
Move NUM1 into AX
Move NUM2 into BX
Add BX into AX
Move NUM3 into BX
Add BX into AX
Store AX into NUM4
Questions No 02 10 marks
Suppose, we have the following register values:
AX
0150
BX
AB5D
CX
FF0A
DX
1234
DS
CC20
CS
EF10
ES
225F
SS
E25F
SI
1212
SP
CD0F
BP
95F8
DI
BDEF
You are required to calculate the physical address generated by each of the following instructions.
ADD [bx+Di], CX
MOV DX, [SP+1652H]
Note: Each provided instruction is independent.


No comments:

Post a Comment