mirror of
https://github.com/cc65/cc65.git
synced 2024-11-03 10:07:02 +00:00
6efb71bea7
- exit right below 6502 vectors. - keep exit addr stable as it may be called from asm.
18 lines
463 B
ArmAsm
18 lines
463 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
|
|
|
|
_open := $FFF4
|
|
_close := $FFF5
|
|
_read := $FFF6
|
|
_write := $FFF7
|
|
args := $FFF8
|
|
exit := $FFF9
|