Miscellaneous Instructions
i) PUSH
- Syntax: PUSH reg. pair
- e.g. PUSH B
Before instruction B=32, C=57 SP=2099 | After instruction M [2097]=57 M [2098]=32 SP=2097 |
ii) POP
- Syntax: POP reg. pair
- e.g. POP H
Before instruction SP=2090 M [2090]=F5 M [2091]=01 | After instruction H=01 L=F5 SP=2092 |
iii) EI
- Enabling interrupts
- Disabling interrupts
- The contents of registers H and L are copied to the program counter.
- The contents of registers H and L are copied to the stack pointer register.
- Exchange H and L with Top of Stack
Comments
Post a Comment