Some style adjustments.

This commit is contained in:
Oliver Schmidt
2020-04-02 10:03:01 +02:00
parent 4cc95a2c6c
commit 65dd931d22
19 changed files with 41 additions and 50 deletions

View File

@@ -15,7 +15,7 @@
;
_atoi:
_atol: sta ptr1 ; Store s
_atol: sta ptr1 ; store s
stx ptr1+1
ldy #0
sty ptr2
@@ -71,7 +71,7 @@ L6: lda (ptr1),y ; get next char
lda ptr2+1
pha
lda ptr2
pha ; Save value
pha ; save value
jsr mul2 ; * 4
jsr mul2 ; * 8
@@ -118,7 +118,7 @@ L8: lda ptr2
; Negate the value if necessary, otherwise we're done
ldy tmp1 ; sign
beq L9 ; Branch if positive
beq L9 ; branch if positive
; Negate the 32 bit value in ptr2/sreg
@@ -133,5 +133,3 @@ mul2: asl ptr2
rol sreg
rol sreg+1 ; * 2
L9: rts