T.I.M | ISA Specification
 All Pages
PUSH

Description

Push a register onto the top of the stack.

Register Access

The PUSH instruction may read from any register, general, special or temporary. Each instance of the PUSH instruction will also cause the Stack Pointer register to be incremented.

Memory Layout

This is a 2 byte instruction. The GP/SR bit determines whether the source register is addressing the general purpose register bank or the special purpose / temporary register bank.

Opcode | Condition Code | GP/SR | Source | Don't Care
000110 | 00 | 1/0 | DDDD | ???

Assembly Code Examples

1. | PUSH $R2 ; PUSH R2 to the top of the stack.
2. | PUSH $PC ; PUSH the program counter to the top of the stack.
See Also
Instructions Quick Reference, POP