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:
|
2017-09-25 19:39:57 +00:00
|
|
|
|
2017-09-24 17:23:44 +00:00
|
|
|
ldx #PWD_PTR
|
|
|
|
BRK_TELEMON XVARS
|
2017-09-25 19:39:57 +00:00
|
|
|
|
|
|
|
sta ptr1
|
|
|
|
sty ptr1+1
|
|
|
|
|
2017-09-24 17:23:44 +00:00
|
|
|
ldy #$00
|
2017-09-25 19:39:57 +00:00
|
|
|
|
2017-09-24 17:23:44 +00:00
|
|
|
loop:
|
2017-09-25 19:39:57 +00:00
|
|
|
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
|