1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00
cc65/libsrc/runtime/bcast.s
2020-09-18 08:57:28 +02:00

22 lines
269 B
ArmAsm

;
; acqn, 01.16.2020
;
; CC65 runtime: boolean cast
;
.export bcasta, bcastax
bcastax:
cpx #0
bne L1
bcasta:
tax
beq L0 ; Zero already in X
L1: ldx #0
lda #1
L0: rts