You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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