1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-17 00:29:31 +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:
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