1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-16 02:10:52 +00:00
cc65/libsrc/runtime/lbcast.s

21 lines
336 B
ArmAsm
Raw Normal View History

2020-09-18 06:42:56 +00:00
;
; 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