Professional Documents
Culture Documents
Student Name:
Faculty of Engineering
Student Number:
Course Title:
Course No:
Lecturer:
(8 marks)
Question 2
Describe the typical uses for each of the following registers.
Register
(3 marks)
Typical Uses
EAX
EDX
ESP
ESI
EIP
EFLAGS
Familiar and Unfamiliar problems solving: the aim of the questions in this part is to evaluate that the student has some
basic knowledge of the key aspects of the lecture material and can attempt to solve familiar and unfamiliar problems of IA32 Processor Architecture, Assembly Language Fundamentals: Instructions, Directives, Identifiers, Defining Data, Symbolic
Constants, Data Transfers, Addressing, and Arithmetic instructions.
Question 3
(2 marks)
If the content of the register SS = 3500H and the content of the register SP= FFFEH, then
a) Calculate the physical address.
Solution
Question 4
Write assembly code to do the following
a) Declare a byte containing the value 64. Label the memory location var.
Solution
(2 marks)
Write complete assembly program that computes the following equations (5 marks)
and
In your code:
Define the 2-byte signed integer variables J, K and L. (; Initialize J to 3 and K to -2)
Define the 2-byte unsigned integer variables U1, U2 and U3. (; Initialize U1 to 254 and
U2 to 22)
DS must point to the segment address.
Solution
Good Luck
3