1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 06:28:57 +00:00
cc65/libsrc/telestrat/initcwd.s

29 lines
474 B
ArmAsm
Raw Normal View History

2017-09-24 17:23:44 +00:00
;
; Oliver Schmidt, 18.04.2005
;
.export initcwd
.import __cwd
.include "zeropage.inc"
.include "telestrat.inc"
initcwd:
ldx #PWD_PTR
BRK_TELEMON XVARS
sta tmp1
sty tmp1+1
ldy #$00
loop:
lda (tmp1),y
beq done
sta __cwd,y
iny
bne loop
done:
2017-09-24 18:07:02 +00:00
sta __cwd,y
2017-09-24 17:23:44 +00:00
rts