1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-05 08:05:51 +00:00
cc65/libsrc/telestrat/sysmkdir.s

34 lines
645 B
ArmAsm
Raw Normal View History

2017-10-27 22:37:47 +00:00
;
; Jede (jede@oric.org), 2017-10-27
;
; unsigned char _sysmkdir (const char* name, ...);
;
2022-05-05 20:43:06 +00:00
; This routine only works with Orix
2017-10-27 22:37:47 +00:00
.export __sysmkdir
.import addysp, popax
.include "telestrat.inc"
.include "zeropage.inc"
2022-04-17 14:06:22 +00:00
2017-10-27 22:37:47 +00:00
__sysmkdir:
; Throw away all parameters except the name
dey
dey
jsr addysp
; Get name
jsr popax
2022-04-17 14:06:22 +00:00
2022-05-05 20:43:06 +00:00
stx tmp1
ldy tmp1
ldx #$00 ; X register is used to set if all folders must be created
2022-04-17 14:06:22 +00:00
2022-05-05 20:43:06 +00:00
; Call telemon primitive
2022-05-05 20:50:37 +00:00
2017-10-27 22:37:47 +00:00
BRK_TELEMON(XMKDIR)
2022-04-17 14:06:22 +00:00
2017-10-27 22:37:47 +00:00
rts