mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Now mkdir is working
This commit is contained in:
parent
7435c2f3ca
commit
807b55862d
@ -171,6 +171,7 @@ XSOUND = $44
|
||||
XMUSIC = $45
|
||||
XZAP = $46
|
||||
XSHOOT = $47
|
||||
XMKDIR = $4B ; create a folder. Only available in telemon 3.x
|
||||
XSOUT = $67 ; send A register to RS232, available in telemon 2.4 & 3.x
|
||||
XHRSSE = $8C ; set hires position cursor
|
||||
XDRAWA = $8D ; draw a line
|
||||
|
17
libsrc/telestrat/oserror.s
Normal file
17
libsrc/telestrat/oserror.s
Normal file
@ -0,0 +1,17 @@
|
||||
;
|
||||
; Jede, 2017-10-27
|
||||
;
|
||||
; int __fastcall__ _osmaperrno (unsigned char oserror);
|
||||
; /* Map a system specific error into a system independent code */
|
||||
;
|
||||
|
||||
.include "errno.inc"
|
||||
.export __osmaperrno
|
||||
|
||||
.proc __osmaperrno
|
||||
|
||||
lda #<EUNKNOWN
|
||||
ldx #>EUNKNOWN
|
||||
rts
|
||||
|
||||
.endproc
|
30
libsrc/telestrat/sysmkdir.s
Normal file
30
libsrc/telestrat/sysmkdir.s
Normal file
@ -0,0 +1,30 @@
|
||||
;
|
||||
; Jede (jede@oric.org), 2017-10-27
|
||||
;
|
||||
; unsigned char _sysmkdir (const char* name, ...);
|
||||
;
|
||||
|
||||
.export __sysmkdir
|
||||
.import addysp, popax
|
||||
|
||||
.include "telestrat.inc"
|
||||
.include "zeropage.inc"
|
||||
|
||||
|
||||
__sysmkdir:
|
||||
; Throw away all parameters except the name
|
||||
dey
|
||||
dey
|
||||
jsr addysp
|
||||
|
||||
; Get name
|
||||
jsr popax
|
||||
|
||||
; Call telemon primitive
|
||||
|
||||
BRK_TELEMON(XMKDIR)
|
||||
|
||||
rts
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user