mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Make close() fastcall
git-svn-id: svn://svn.cc65.org/cc65/trunk@1530 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
70bc177714
commit
9e74c2b26f
@ -58,7 +58,7 @@ typedef long int off_t;
|
|||||||
|
|
||||||
/* Functions */
|
/* Functions */
|
||||||
int open (const char* name, int flags, ...); /* May take a mode argument */
|
int open (const char* name, int flags, ...); /* May take a mode argument */
|
||||||
int close (int fd);
|
int __fastcall__ close (int fd);
|
||||||
int write (int fd, const void* buf, unsigned count);
|
int write (int fd, const void* buf, unsigned count);
|
||||||
int read (int fd, void* buf, unsigned count);
|
int read (int fd, void* buf, unsigned count);
|
||||||
int mkdir (const char* name, ...); /* May take a mode argument */
|
int mkdir (const char* name, ...); /* May take a mode argument */
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
.import fdtoiocb_down,__inviocb
|
.import fdtoiocb_down,__inviocb
|
||||||
|
|
||||||
.proc _close
|
.proc _close
|
||||||
jsr popax
|
|
||||||
jsr fdtoiocb_down ; get iocb index into X and decr. usage count
|
jsr fdtoiocb_down ; get iocb index into X and decr. usage count
|
||||||
bmi inverr
|
bmi inverr
|
||||||
bne ok ; not last one -> don't close yet
|
bne ok ; not last one -> don't close yet
|
||||||
|
Loading…
Reference in New Issue
Block a user