1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 06:25:17 +00:00

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,22 +10,19 @@
initcwd: initcwd:
ldx #PWD_PTR ldx #PWD_PTR
BRK_TELEMON XVARS BRK_TELEMON XVARS
sta ptr1 sta ptr1
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