mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
0dd7b0c3a5
This will allow using unlink()/remove() in sim65 programs Use it to unlink fgets' test output file
23 lines
641 B
ArmAsm
23 lines
641 B
ArmAsm
;
|
|
; Oliver Schmidt, 2013-05-16
|
|
;
|
|
; int open (const char* name, int flags, ...);
|
|
; int __fastcall__ close (int fd);
|
|
; int __fastcall__ read (int fd, void* buf, unsigned count);
|
|
; int __fastcall__ write (int fd, const void* buf, unsigned count);
|
|
;
|
|
|
|
.export exit, args, _open, _close, _read, _write
|
|
.export __sysremove, ___osmaperrno
|
|
|
|
__sysremove := $FFF2
|
|
___osmaperrno := $FFF3
|
|
_open := $FFF4
|
|
_close := $FFF5
|
|
_read := $FFF6
|
|
_write := $FFF7
|
|
args := $FFF8
|
|
exit := $FFF9
|
|
|
|
; $FFFA-FFFF are hardware vectors, extend before not after!
|