Next: , Previous: , Up: Athena Assembly   [Contents][Index]


6 Pseudo Instructions

Pseudo InstructionBase Instruction(s)Description
b offsetbeq r0, r0, offsetUnconditional branch
beqz ra, offsetbeq ra, r0, offsetBranch if not zero
la rd, labelori rd, r0, labelLoad address (if address is < 0xFFFF)
la rd, labellih at, %hi(label)
ori rd, at, %low(label)
Load address into register
li rd, immori rd, r0, immLoad immediat (if imm is < 0xFFFF)
li rd, immlih at, %hi(imm)
ori rd, at, %low(imm)
Load immediat into register
nopadd r0, r0, r0No-Op
retTODOSubroutine return.
swap ra, rbxor ra, ra, rb
xor rb, ra, rb
xor ra, ra, rb
XOR swap between two registers