<< Previous | Next >>

RET f     Return on Flag     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
---- RET f If {f}
  PClow= (SP); PChigh= (SP + 1); SP = SP + 2
C0 RET NZ if {NZ}
  PClow = (SP); PChigh = (SP + 1)
  SP = SP + 2
C8 RET Z if {Z}
  PClow = (SP); PChigh = (SP + 1)
  SP = SP + 2
D0 RET NC if {NC}
  PClow = (SP); PChigh = (SP + 1)
  SP = SP + 2
D8 RET C if {C}
  PClow = (SP); PChigh = (SP + 1)
  SP = SP + 2
E0 RET LZ if {LZ}
  PClow = (SP); PChigh = (SP + 1)
  SP = SP + 2
E8 RET LO if {LO}
  PClow = (SP); PChigh = (SP + 1)
  SP = SP + 2
F0 RET P if {P}
  PClow = (SP); PChigh = (SP + 1)
  SP = SP + 2
F8 RET M if {M}
  PClow = (SP); PChigh = (SP + 1)
  SP = SP + 2

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
8
n/a
n/a
Rabbit 5000
8
8
8

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-

Description

If the condition f is false, the instruction is ignored. Otherwise, program execution continues at the address at the top of the stack. See "Condition Codes" on page 4 for a description of f.


Rabbit Instructions << Previous | Next >> rabbit.com