mirror of
https://github.com/cc65/cc65.git
synced 2024-08-20 09:29:12 +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
|
|
|