z80:Opcodes:EXX

From Learn @ Cemetech
Revision as of 18:31, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

EXX exchanges BC, DE, and HL with shadow registers with BC', DE', and HL'.

Syntax

   exx

Effects

All flags preserved.

Uses

Most useful in interrupts as an alternative to saving those registers on the stack. If you want to use this command outside an interrupt, make sure interrupts are disabled first.

T-States

4 t-states

See Also

DI,EI,EX,HALT,IM,RETI,RETN