Professional Documents
Culture Documents
Sample 2
Sample 2
Sample 2
CENG624
1
Table of Contents
Question 1 .........................................................................................................................................3
Question 2 .........................................................................................................................................4
Question 3 .........................................................................................................................................6
References .................................................................................................................................................... 8
2
Question 1:
• Code segment register (CS): is used for addressing memory location in the
code segment of the memory, where the executable program is stored.
• Data segment register (DS): points to the data segment of the memory
where the data is stored.
• Stack Segment Register (SS): is used for addressing stack segment of the
memory. The stack segment is that segment of memory which is used to store
stack data.
Question 2
Question 3:
General purpose registers are used to store temporary data within the microprocessor.
There are 8 general purpose registers in 8086 microprocessor.[3]
3
• AX – This is the accumulator. It is of 16 bits and is divided into two 8-bit registers
AH and AL to also perform 8-bit instructions.It is generally used for arithmetical
and logical instructions but in 8086 microprocessor it is not mandatory to have
accumulator as the destination operand.
• BX – This is the base register. It is of 16 bits and is divided into two 8-bit registers
BH and BL to also perform 8-bit instructions.It is used to store the value of the
offset.
Example:
• CX – This is the counter register. It is of 16 bits and is divided into two 8-bit
registers CH and CL to also perform 8-bit instructions.It is used in looping and
rotation.
Example:
• DX – This is the data register. It is of 16 bits and is divided into two 8-bit registers
DH and DL to also perform 8-bit instructions. It is used in multiplication an
input/output port addressing.
Example:
4
References
[1] https://www.geeksforgeeks.org/memory-segmentation-8086-microprocessor/
[3] https://www.tutorialspoint.com/assembly_programming/assemb
ly_registers.htm#:~:text=AX%20is%20the%20primary%20accumu
lator,be%20used%20in%20indexed%20addressing.