2076 6

CSC167 ยท 2076 ยท 5 marks

Differentiate between PUSH and POP instruction with example illustrating the use of these instructions.

Differentiate between PUSH and POP instruction with example illustrating the use of these instructions. [5]

MicroprocessorChapter 4: Assembly Language ProgrammingInstruction Types

PUSH is a data transfer instruction that copies the contents of a specified register pair onto the stack (a reserved area in memory). The Stack Pointer (SP) is decremented by 2 (since a register pair holds 16 bits = 2 bytes) before storing the data. Syntax: PUSH rp where rp is a register pair (BC...