1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00
cc65/libsrc/telestrat/initcwd.s
jedeoric 4f26650228
[Telestrat] chdir management (#1419)
* add syschdir

* revert read.s

* remove extra line

* Now we update __cwd

* Fix tab

* Fix another tab

* Fix tab

* Fix tab and jmp

* fix xgetcwd

* Fix comments
2021-03-11 09:42:14 +01:00

28 lines
416 B
ArmAsm

;
; Jede (jede@oric.org) 24.09.2017
;
.export initcwd
.import __cwd
.include "zeropage.inc"
.include "telestrat.inc"
initcwd:
BRK_TELEMON(XGETCWD)
sta ptr1
sty ptr1+1
ldy #$00
loop:
lda (ptr1),y
sta __cwd,y
beq done
iny
bne loop
done:
rts