1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-05 21:29:03 +00:00
cc65/libsrc/cbm/initcwd.s

23 lines
256 B
ArmAsm
Raw Normal View History

;
; 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