Fix CRLFs introduced by fe3f267
This commit is contained in:
committed by
Oliver Schmidt
parent
b8ae5c28fe
commit
0482e4d6e4
@@ -1,21 +1,21 @@
|
|||||||
;
|
;
|
||||||
; acqn, 01.16.2020
|
; acqn, 01.16.2020
|
||||||
;
|
;
|
||||||
; CC65 runtime: boolean cast
|
; CC65 runtime: boolean cast
|
||||||
;
|
;
|
||||||
|
|
||||||
.export bcasta, bcastax
|
.export bcasta, bcastax
|
||||||
|
|
||||||
bcastax:
|
bcastax:
|
||||||
cpx #0
|
cpx #0
|
||||||
bne L1
|
bne L1
|
||||||
|
|
||||||
bcasta:
|
bcasta:
|
||||||
tax
|
tax
|
||||||
beq L0 ; Zero already in X
|
beq L0 ; Zero already in X
|
||||||
|
|
||||||
L1: ldx #0
|
L1: ldx #0
|
||||||
lda #1
|
lda #1
|
||||||
|
|
||||||
L0: rts
|
L0: rts
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
;
|
;
|
||||||
; acqn, 01.16.2020
|
; acqn, 01.16.2020
|
||||||
;
|
;
|
||||||
; CC65 runtime: boolean cast for longs
|
; CC65 runtime: boolean cast for longs
|
||||||
;
|
;
|
||||||
|
|
||||||
.export bcasteax
|
.export bcasteax
|
||||||
.importzp sreg, tmp1
|
.importzp sreg, tmp1
|
||||||
|
|
||||||
bcasteax:
|
bcasteax:
|
||||||
stx tmp1
|
stx tmp1
|
||||||
ldx #0 ; High byte of result
|
ldx #0 ; High byte of result
|
||||||
ora tmp1
|
ora tmp1
|
||||||
ora sreg
|
ora sreg
|
||||||
ora sreg+1
|
ora sreg+1
|
||||||
beq L0
|
beq L0
|
||||||
|
|
||||||
lda #1
|
lda #1
|
||||||
L0: rts
|
L0: rts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user