mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
21 lines
336 B
ArmAsm
21 lines
336 B
ArmAsm
;
|
|
; acqn, 01.16.2020
|
|
;
|
|
; CC65 runtime: boolean cast for longs
|
|
;
|
|
|
|
.export bcasteax
|
|
.importzp sreg, tmp1
|
|
|
|
bcasteax:
|
|
stx tmp1
|
|
ldx #0 ; High byte of result
|
|
ora tmp1
|
|
ora sreg
|
|
ora sreg+1
|
|
beq L0
|
|
|
|
lda #1
|
|
L0: rts
|
|
|