1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00
cc65/libsrc/telestrat/initcwd.s

32 lines
513 B
ArmAsm
Raw Normal View History

2017-09-24 17:23:44 +00:00
;
; Jede (jede@oric.org) 24.09.2017
2017-09-24 17:23:44 +00:00
;
.export initcwd
.import __cwd
.include "zeropage.inc"
.include "telestrat.inc"
initcwd:
2017-09-24 17:23:44 +00:00
ldx #PWD_PTR
BRK_TELEMON XVARS
sta ptr1
sty ptr1+1
2017-09-24 17:23:44 +00:00
ldy #$00
2017-09-24 17:23:44 +00:00
loop:
lda (ptr1),y
2017-09-24 17:23:44 +00:00
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