mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
22 lines
179 B
ArmAsm
22 lines
179 B
ArmAsm
|
;
|
||
|
; Ullrich von Bassewitz, 05.08.1998
|
||
|
;
|
||
|
; CC65 runtime: negation on ints
|
||
|
;
|
||
|
|
||
|
.export negax
|
||
|
|
||
|
negax: clc
|
||
|
eor #$FF
|
||
|
adc #1
|
||
|
pha
|
||
|
txa
|
||
|
eor #$FF
|
||
|
adc #0
|
||
|
tax
|
||
|
pla
|
||
|
rts
|
||
|
|
||
|
|
||
|
|