Next: GNU Free Documentation License, Previous: Pseudo Op-Codes, Up: Athena Assembly [Contents][Index]
Pseudo Instruction | Base Instruction(s) | Description |
---|---|---|
b offset | beq r0, r0, offset | Unconditional branch |
beqz ra, offset | beq ra, r0, offset | Branch if not zero |
la rd, label | ori rd, r0, label | Load address (if address is < 0xFFFF) |
la rd, label | lih at, %hi(label)
ori rd, at, %low(label) | Load address into register |
li rd, imm | ori rd, r0, imm | Load immediat (if imm is < 0xFFFF) |
li rd, imm | lih at, %hi(imm)
ori rd, at, %low(imm) | Load immediat into register |
nop | add r0, r0, r0 | No-Op |
ret | TODO | Subroutine return. |
swap ra, rb | xor ra, ra, rb
xor rb, ra, rb
xor ra, ra, rb | XOR swap between two registers |