You are on page 1of 2

WWW.VUTUBE.EDU.

PK
CS 401 Computer Architecture and Assembly Language
Assignment #01
Deadline
Your assignment must be uploaded / submitted before or on October 18, 2007.
Upload Instructions
Please view the assignment submission process document provided to you by the Virtual
University to upload the assignment.
Rules for Marking
Please note that your assignment will not be graded if:
 It is submitted after due date
 The file you uploaded does not open
 The file you uploaded is copied from some one else
 It is in some format other than .doc
Objective

The assignment has been designed to enable you:

 To know about different addressing modes


 To calculate effective address and physical address
 To know about the comparisons and conditions

Answer the following questions

Q#1.

Identify the problems in the following instructions and correct them by replacing
them with one or two instruction having the same effect.

i. mov [05], [ 24]


ii. mov [label1], 501
iii. mov bx, al
iv. mov ax, [si+di+100]
v. mov bx,[bs+bp+200]

Q#2.

Write a program to calculate the square of 10 by using a loop that adds 10 to the
accumulator 10 times.
Q#3.

If AX=8FFF and BX=0FFF and “cmp ax, bx” is executed, which of the following
jumps will be taken? Each part is independent of others. Also give the value of Z,
S, and C flags.
i. jg greater
ii. jl smaller
iii. ja above
iv. jb below

Instructions Jump ZF SF CF
Jg greater
Jl smaller
Ja above
Jb below

You might also like