You are on page 1of 2

Josielyn L.

Taro
CpE 701

02 Laboratory Exercise 1
1. What registers are used?
The registers used in the code were Primary accumulator (AX), Data segment register (DS), CL
and CH which are both an 8-bit data register, and BX or the base register.
2. What is happening with the registers?
In the registers, it sets AX to hexadecimal value of B800h, copy the value of AX to DS, sets CL to
ASCII code of „A‟, it is the 41h, sets CH to binary value, and lastly, it sets BX to 15Eh.
3. What is the purpose of instruction pointer?
The purpose of instruction pointer is to store the offset address of the next instruction to be
executed.
4. What will happen if I insert this code before RET, INC AX
If we insert the code “INC AX” before “RET”, it will increment the value of AX.

Screenshots:

You might also like