mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
22 lines
269 B
ArmAsm
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
|
|
|