1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00
cc65/libsrc/runtime/lbcast.s
2020-09-18 08:57:28 +02:00

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