Shrank Telestrat initcwd.s by 3 bytes.

Changing when a loop test is done allowed the removal of an extra STA instruction.
This commit is contained in:
Greg King
2018-01-09 04:48:39 -05:00
parent 1ea5889a87
commit da22c90d33

View File

@@ -10,7 +10,6 @@
initcwd: initcwd:
ldx #PWD_PTR ldx #PWD_PTR
BRK_TELEMON XVARS BRK_TELEMON XVARS
@@ -18,14 +17,12 @@ initcwd:
sty ptr1+1 sty ptr1+1
ldy #$00 ldy #$00
loop: loop:
lda (ptr1),y lda (ptr1),y
beq done
sta __cwd,y sta __cwd,y
beq done
iny iny
bne loop bne loop
done: done:
sta __cwd,y
rts rts