From: Greg King Date: Tue, 9 Jan 2018 09:48:39 +0000 (-0500) Subject: Shrank Telestrat initcwd.s by 3 bytes. X-Git-Tag: V2.17~49 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da22c90d33fcd4466f770f54755dbb886530f6ee;p=cc65 Shrank Telestrat initcwd.s by 3 bytes. Changing when a loop test is done allowed the removal of an extra STA instruction. --- diff --git a/libsrc/telestrat/initcwd.s b/libsrc/telestrat/initcwd.s index f359ebeb4..dc3c53257 100644 --- a/libsrc/telestrat/initcwd.s +++ b/libsrc/telestrat/initcwd.s @@ -10,22 +10,19 @@ initcwd: - ldx #PWD_PTR BRK_TELEMON XVARS - + sta ptr1 sty ptr1+1 - + ldy #$00 - -loop: +loop: lda (ptr1),y - beq done sta __cwd,y + beq done iny bne loop - -done: - sta __cwd,y + +done: rts