RosettaCodeData/Task/Generic-swap/Z80-Assembly/generic-swap-4.z80
2023-07-01 13:44:08 -04:00

4 lines
112 B
Z80 Assembly

push hl
ld h,d
ld L,e ;store de into HL. This is much faster than "push de pop hl."
pop de ;put old HL into DE