2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 05.08.1998
|
|
|
|
;
|
|
|
|
; CC65 runtime: xor on ints
|
|
|
|
;
|
|
|
|
|
2013-05-09 13:56:54 +02:00
|
|
|
.export tosxora0, tosxorax
|
|
|
|
.import addysp1
|
|
|
|
.importzp sp, tmp1
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
tosxora0:
|
2013-05-09 13:56:54 +02:00
|
|
|
ldx #$00
|
2000-05-28 13:40:48 +00:00
|
|
|
tosxorax:
|
2013-05-09 13:56:54 +02:00
|
|
|
ldy #0
|
|
|
|
eor (sp),y
|
|
|
|
sta tmp1
|
|
|
|
iny
|
|
|
|
txa
|
|
|
|
eor (sp),y
|
|
|
|
tax
|
|
|
|
lda tmp1
|
|
|
|
jmp addysp1 ; drop TOS, set condition codes
|
2000-05-28 13:40:48 +00:00
|
|
|
|