2017-09-24 17:23:44 +00:00
|
|
|
;
|
2017-09-25 19:39:57 +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:
|
|
|
|
ldx #PWD_PTR
|
|
|
|
BRK_TELEMON XVARS
|
2018-01-09 09:48:39 +00:00
|
|
|
|
2017-09-25 19:39:57 +00:00
|
|
|
sta ptr1
|
|
|
|
sty ptr1+1
|
2018-01-09 09:48:39 +00:00
|
|
|
|
2017-09-24 17:23:44 +00:00
|
|
|
ldy #$00
|
2018-01-09 09:48:39 +00:00
|
|
|
loop:
|
2017-09-25 19:39:57 +00:00
|
|
|
lda (ptr1),y
|
2017-09-24 17:23:44 +00:00
|
|
|
sta __cwd,y
|
2018-01-09 09:48:39 +00:00
|
|
|
beq done
|
2017-09-24 17:23:44 +00:00
|
|
|
iny
|
|
|
|
bne loop
|
2018-01-09 09:48:39 +00:00
|
|
|
|
|
|
|
done:
|
2017-09-24 17:23:44 +00:00
|
|
|
rts
|