mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
fix mkdir
This commit is contained in:
parent
b8f7167dcd
commit
348ea815b0
@ -3,6 +3,8 @@
|
||||
;
|
||||
; unsigned char _sysmkdir (const char* name, ...);
|
||||
;
|
||||
; This routine only works with Orix
|
||||
|
||||
|
||||
.export __sysmkdir
|
||||
.import addysp, popax
|
||||
@ -10,7 +12,6 @@
|
||||
.include "telestrat.inc"
|
||||
.include "zeropage.inc"
|
||||
|
||||
|
||||
__sysmkdir:
|
||||
; Throw away all parameters except the name
|
||||
dey
|
||||
@ -20,11 +21,13 @@ __sysmkdir:
|
||||
; Get name
|
||||
jsr popax
|
||||
|
||||
; Call telemon primitive
|
||||
stx tmp1
|
||||
ldy tmp1
|
||||
|
||||
ldx #$00 ; X register is used to set if all folders must be created
|
||||
|
||||
; Call telemon primitive
|
||||
|
||||
BRK_TELEMON(XMKDIR)
|
||||
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user