1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00
cc65/libsrc/telestrat/initcwd.s

28 lines
416 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:
BRK_TELEMON(XGETCWD)
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