mirror of
https://github.com/cc65/cc65.git
synced 2024-12-28 22:30:12 +00:00
32 lines
611 B
ArmAsm
32 lines
611 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 05.08.1998
|
|
; Christian Krueger, 11-Mar-2017, added 65SC02 optimization
|
|
;
|
|
; CC65 runtime: or on ints
|
|
;
|
|
|
|
.export tosora0, tosorax
|
|
.import addysp1
|
|
.importzp sp, tmp1
|
|
|
|
.macpack cpu
|
|
|
|
tosora0:
|
|
ldx #$00
|
|
tosorax:
|
|
.if (.cpu .bitand ::CPU_ISET_65SC02)
|
|
ora (sp)
|
|
ldy #1
|
|
.else
|
|
ldy #0
|
|
ora (sp),y
|
|
iny
|
|
.endif
|
|
sta tmp1
|
|
txa
|
|
ora (sp),y
|
|
tax
|
|
lda tmp1
|
|
jmp addysp1 ; drop TOS, set condition codes
|
|
|