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

29 lines
438 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:
ldx #PWD_PTR
BRK_TELEMON XVARS
sta ptr1
sty ptr1+1
2017-09-24 17:23:44 +00:00
ldy #$00
loop:
lda (ptr1),y
2017-09-24 17:23:44 +00:00
sta __cwd,y
beq done
2017-09-24 17:23:44 +00:00
iny
bne loop
done:
2017-09-24 17:23:44 +00:00
rts