Skip to content

Commit

Permalink
[BASIC] Size optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
jjgignac authored and mist64 committed Sep 28, 2019
1 parent 09215c7 commit 8b1f368
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 21 deletions.
7 changes: 3 additions & 4 deletions basic/code10.s
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ isvret sta facmo
lda #0
sta facov
jsr tstrom ;see if an array
bcc strrts ;don't test st(i),ti(i)
bcc tstr10 ;don't test st(i),ti(i)
cpx #'T'
bne strrts
bne tstr10
cpy #$c9
bne strrts
bne tstr10
jsr gettim
sty tenexp
dey
Expand All @@ -42,7 +42,6 @@ isvret sta facmo
ldy #fdcend-foutbl
jsr foutim
jmp timstr
strrts rts
gooo bit intflg
bpl gooooo
ldy #0
Expand Down
4 changes: 2 additions & 2 deletions basic/code16.s
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mvdone clc
bcc mvstrt
inc frespc+1
mvstrt rts
frmstr jsr frmevl
frestr jsr chkstr
frefac lda facmo
ldy facmo+1
Expand Down Expand Up @@ -109,8 +110,7 @@ midd lda #255
jsr chrgot
cmp #41
beq mid2
jsr chkcom
jsr getbyt
jsr combyt
mid2 jsr pream
beq gofuc
dex
Expand Down
3 changes: 1 addition & 2 deletions basic/code26.s
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ paoc5 jsr paoc19 ;store x,y then maybe quit
ldx eormsk
lda andmsk
jsr paoc19 ;store x,y then maybe quit
paoc15 jsr frmevl
jsr frestr ;length in .a
paoc15 jsr frmstr ;length in .a
ldx index1
ldy index1+1
jmp $ffbd
Expand Down
3 changes: 1 addition & 2 deletions basic/code3.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ golst jsr linget
beq lstend
cmp #minutk
bne flnrts
jsr chrget
jsr linget
jsr clnget
bne flnrts
lstend pla
pla
Expand Down
4 changes: 2 additions & 2 deletions basic/code5.s
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ onglop dec faclo
bne onglp1
pla
jmp gone2
onglp1 jsr chrget
jsr linget
onglp1 jsr clnget
cmp #44
beq onglop
pla
ongrts rts
clnget jsr chrget
linget ldx #0
stx linnum
stx linnum+1
Expand Down
11 changes: 4 additions & 7 deletions basic/code7.s
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ get jsr errdir
cmp #'#'
bne gettty
jsr chrget
jsr getbyt
lda #44
jsr synchr
stx channl
jsr coin
jsr inpn10
zz2=buf+1
gettty ldx #<zz2
zz3=buf+2
Expand All @@ -67,11 +63,12 @@ zz3=buf+2
ldx channl
bne iorele
rts
inputn jsr getbyt
inpn10 jsr getbyt
lda #44
jsr synchr
stx channl
jsr coin
jmp coin
inputn jsr inpn10
jsr notqti
iodone lda channl
iorele jsr clschn
Expand Down
3 changes: 1 addition & 2 deletions basic/x16additions.s
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ geos jsr jsrfar

;***************
dos beq ptstat ;no argument: print status
jsr frmevl
jsr frestr ;length in .a
jsr frmstr ;length in .a
cmp #0
beq ptstat ;no argument: print status
ldx index1
Expand Down

0 comments on commit 8b1f368

Please sign in to comment.