Finally: Commodore file I/O
git-svn-id: svn://svn.cc65.org/cc65/trunk@1531 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
24
libsrc/cbm/sysremove.s
Normal file
24
libsrc/cbm/sysremove.s
Normal file
@@ -0,0 +1,24 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 16.11.2002
|
||||
;
|
||||
; unsigned char __fastcall__ _sysremove (const char* name);
|
||||
;
|
||||
|
||||
.export __sysremove
|
||||
.import fnparse, scratch
|
||||
|
||||
|
||||
;--------------------------------------------------------------------------
|
||||
; __sysremove:
|
||||
|
||||
.proc __sysremove
|
||||
|
||||
jsr fnparse ; Parse the given file name
|
||||
cmp #0 ; Do we have an error?
|
||||
bne err ; Jump if yes
|
||||
jmp scratch ; Scratch the file, return an error code
|
||||
err: rts
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user