mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
add IOCB command codes to atari.h
This commit is contained in:
parent
85170998ad
commit
5d36270f78
@ -286,5 +286,30 @@ struct __iocb {
|
||||
#define ZIOCB (*(struct __iocb *)0x20) /* zero page IOCB */
|
||||
#define IOCB (*(struct __iocb *)0x340) /* system IOCB buffers */
|
||||
|
||||
/* IOCB Command Codes */
|
||||
#define IOCB_OPEN 0x03 /* open */
|
||||
#define IOCB_GETREC 0x05 /* get record */
|
||||
#define IOCB_GETCHR 0x07 /* get character(s) */
|
||||
#define IOCB_PUTREC 0x09 /* put record */
|
||||
#define IOCB_PUTCHR 0x0B /* put character(s) */
|
||||
#define IOCB_CLOSE 0x0C /* close */
|
||||
#define IOCB_STATIS 0x0D /* status */
|
||||
#define IOCB_SPECIL 0x0E /* special */
|
||||
#define IOCB_DRAWLN 0x11 /* draw line */
|
||||
#define IOCB_FILLIN 0x12 /* draw line with right fill */
|
||||
#define IOCB_RENAME 0x20 /* rename disk file */
|
||||
#define IOCB_DELETE 0x21 /* delete disk file */
|
||||
#define IOCB_LOCKFL 0x23 /* lock file (set to read-only) */
|
||||
#define IOCB_UNLOCK 0x24 /* unlock file */
|
||||
#define IOCB_POINT 0x25 /* point sector */
|
||||
#define IOCB_NOTE 0x26 /* note sector */
|
||||
#define IOCB_GETFL 0x27 /* get file length */
|
||||
#define IOCB_CHDIR_MYDOS 0x29 /* change directory (MyDOS) */
|
||||
#define IOCB_MKDIR 0x2A /* make directory (MyDOS/SpartaDOS) */
|
||||
#define IOCB_RMDIR 0x2B /* remove directory (SpartaDOS) */
|
||||
#define IOCB_CHDIR_SPDOS 0x2C /* change directory (SpartaDOS) */
|
||||
#define IOCB_GETCWD 0x30 /* get current directory (MyDOS/SpartaDOS) */
|
||||
#define IOCB_FORMAT 0xFE /* format */
|
||||
|
||||
/* End of atari.h */
|
||||
#endif /* #ifndef _ATARI_H */
|
||||
|
Loading…
Reference in New Issue
Block a user