<< Previous | Next >>

EX (SP),HL     Exchange     Rabbit 2000/3000/4000 Instruction
Opcode
Instruction
Clocks
Operation

ED 54

EX (SP),HL

15 (2,2,1,2,2,3,3)

H <-> (SP+1)
L <-> (SP)


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

Description

Exchanges the 16 bits at the top of the stack (whose address is SP) with HL.


<< Previous | Next >>