1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-07 04:29:01 +00:00
cc65/libsrc/cbm/initcwd.s
ol.sc 987c3066a3 Introduced getdevicedir() - with implementation for the CBMs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5840 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-10-07 19:18:56 +00:00

23 lines
256 B
ArmAsm

;
; Stefan Haubenthal, 2005-06-08
;
; CBM _curunit to _cwd
;
.export initcwd
.import __curunit, __cwd, devicestr
.importzp ptr2
.segment "INIT"
.proc initcwd
lda #<__cwd
ldx #>__cwd
sta ptr2
stx ptr2+1
lda __curunit
jmp devicestr
.endproc