1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-05 08:05:51 +00:00
cc65/libsrc/runtime/lswap.s

19 lines
201 B
ArmAsm
Raw Normal View History

;
; Ullrich von Bassewitz, 29.12.1999
;
; CC65 runtime: Exchange lo and hi part of eax
;
.export swapeax
.importzp sreg
swapeax:
ldy sreg
sta sreg
lda sreg+1
stx sreg+1
tax
tya
rts