|
llvm-mos-sdk
|
Go to the source code of this file.
Classes | |
| struct | f_stat_t |
Macros | |
| #define | VIA (*(volatile struct __6522 *)0xFFD0) |
| #define | RIA (*(volatile struct __RP6502 *)0xFFE0) |
| #define | RIA_OP_EXIT 0xFF |
| #define | RIA_OP_DROP_XSTACK 0x00 |
| #define | RIA_OP_XREG 0x01 |
| #define | RIA_OP_ARGV 0x08 |
| #define | RIA_OP_EXEC 0x09 |
| #define | RIA_OP_ATTR_GET 0x0A |
| #define | RIA_OP_ATTR_SET 0x0B |
| #define | RIA_OP_OPEN 0x14 |
| #define | RIA_OP_CLOSE 0x15 |
| #define | RIA_OP_READ_XSTACK 0x16 |
| #define | RIA_OP_READ_XRAM 0x17 |
| #define | RIA_OP_WRITE_XSTACK 0x18 |
| #define | RIA_OP_WRITE_XRAM 0x19 |
| #define | RIA_OP_LSEEK_CC65 0x1A |
| #define | RIA_OP_REMOVE 0x1B |
| #define | RIA_OP_RENAME 0x1C |
| #define | RIA_OP_LSEEK 0x1D |
| #define | RIA_OP_LSEEK_LLVM 0x1D |
| #define | RIA_OP_SYNCFS 0x1E |
| #define | RIA_OP_STAT 0x1F |
| #define | RIA_OP_OPENDIR 0x20 |
| #define | RIA_OP_READDIR 0x21 |
| #define | RIA_OP_CLOSEDIR 0x22 |
| #define | RIA_OP_TELLDIR 0x23 |
| #define | RIA_OP_SEEKDIR 0x24 |
| #define | RIA_OP_REWINDDIR 0x25 |
| #define | RIA_OP_CHMOD 0x26 |
| #define | RIA_OP_UTIME 0x27 |
| #define | RIA_OP_MKDIR 0x28 |
| #define | RIA_OP_CHDIR 0x29 |
| #define | RIA_OP_GETCWD 0x2B |
| #define | RIA_OP_SETLABEL 0x2C |
| #define | RIA_OP_GETLABEL 0x2D |
| #define | RIA_OP_GETFREE 0x2E |
| #define | RIA_OP_RLN_LASTKEY 0x30 |
| #define | RIA_OP_RLN_PEEK 0x31 |
| #define | RIA_OP_RLN_POKE 0x32 |
| #define | RIA_OP_GMTIME 0x3A |
| #define | RIA_OP_LOCALTIME 0x3B |
| #define | RIA_OP_MKTIME 0x3C |
| #define | RIA_OP_STRFTIME 0x3D |
| #define | RIA_OP_TIME_SET 0x3E |
| #define | RIA_OP_TIME_GET 0x3F |
| #define | RIA_ATTR_ERRNO_OPT 0x00 |
| #define | RIA_ATTR_PHI2_KHZ 0x01 |
| #define | RIA_ATTR_CODE_PAGE 0x02 |
| #define | RIA_ATTR_RLN_LENGTH 0x03 |
| #define | RIA_ATTR_LRAND 0x04 |
| #define | RIA_ATTR_BEL 0x05 |
| #define | RIA_ATTR_LAUNCHER 0x06 |
| #define | RIA_ATTR_EXIT_CODE 0x07 |
| #define | RIA_ATTR_SIGINT 0x08 |
| #define | RIA_ATTR_RLN_CAPS 0x09 |
| #define | RIA_ATTR_RLN_WIDTH 0x0A |
| #define | RIA_ATTR_RLN_HEIGHT 0x0B |
| #define | RIA_ATTR_RLN_SUPPRESS_NL 0x0C |
| #define | RIA_ATTR_CLK_RUN_MS 0x10 |
| #define | RIA_ATTR_CLK_RUN_CS 0x11 |
| #define | RIA_ATTR_CLK_RUN_DS 0x12 |
| #define | RIA_ATTR_CLK_RUN_S 0x13 |
| #define | xreg(d, c, i, ...) xregn(d, c, i, sizeof((long[]){__VA_ARGS__}) / sizeof(long), __VA_ARGS__) |
Functions | |
| void | ria_drop (void) |
| unsigned char | ria_vsync (void) |
| unsigned char | ria_irq_read (void) |
| void | ria_irq_write (unsigned char mask) |
| int | ria_execv (const char *path, char *const argv[]) |
| int | ria_execl (const char *path,...) |
| long | ria_attr_get (unsigned char id) |
| int | ria_attr_set (long val, unsigned char id) |
| int | read_xstack (void *buf, unsigned count, int fildes) |
| int | read_xram (unsigned xaddr, unsigned count, int fildes) |
| int | write_xstack (const void *buf, unsigned count, int fildes) |
| int | write_xram (unsigned xaddr, unsigned count, int fildes) |
| long | f_lseek (long offset, char whence, int fildes) |
| int | f_stat (const char *path, f_stat_t *dirent) |
| int | f_opendir (const char *name) |
| int | f_readdir (f_stat_t *dirent, int dirdes) |
| int | f_closedir (int dirdes) |
| long | f_telldir (int dirdes) |
| int | f_seekdir (long loc, int dirdes) |
| int | f_rewinddir (int dirdes) |
| int | f_chmod (const char *path, unsigned char attr, unsigned char mask) |
| int | f_utime (const char *path, unsigned fdate, unsigned ftime, unsigned crdate, unsigned crtime) |
| int | f_mkdir (const char *name) |
| int | f_setlabel (const char *name) |
| int | f_getlabel (const char *drive, char *label) |
| int | f_getfree (const char *drive, unsigned long *free, unsigned long *total) |
| int | ria_rln_lastkey (char *key, unsigned char *action) |
| int | ria_rln_peek (char *peek, unsigned char *pos) |
| int | ria_rln_poke (const char *poke) |
| int | time_set (long long time) |
| int | xregn (char device, char channel, unsigned char index, unsigned count,...) |
| void | xram0_read (void *dest, unsigned src, unsigned count) |
| void | xram1_read (void *dest, unsigned src, unsigned count) |
| void | xram0_write (unsigned dest, const void *src, unsigned count) |
| void | xram1_write (unsigned dest, const void *src, unsigned count) |
| void | xram0_set (unsigned dest, unsigned char val, unsigned count) |
| void | xram1_set (unsigned dest, unsigned char val, unsigned count) |
| void | xram_move (unsigned dest, unsigned src, unsigned count) |
| unsigned char | xram0_peek8 (unsigned addr) |
| unsigned char | xram1_peek8 (unsigned addr) |
| unsigned | xram0_peek16 (unsigned addr) |
| unsigned | xram1_peek16 (unsigned addr) |
| void | xram0_poke8 (unsigned addr, unsigned char val) |
| void | xram1_poke8 (unsigned addr, unsigned char val) |
| void | xram0_poke16 (unsigned addr, unsigned val) |
| void | xram1_poke16 (unsigned addr, unsigned val) |
| #define RIA (*(volatile struct __RP6502 *)0xFFE0) |
| #define RIA_ATTR_BEL 0x05 |
| #define RIA_ATTR_CLK_RUN_CS 0x11 |
| #define RIA_ATTR_CLK_RUN_DS 0x12 |
| #define RIA_ATTR_CLK_RUN_MS 0x10 |
| #define RIA_ATTR_CLK_RUN_S 0x13 |
| #define RIA_ATTR_CODE_PAGE 0x02 |
| #define RIA_ATTR_ERRNO_OPT 0x00 |
| #define RIA_ATTR_EXIT_CODE 0x07 |
| #define RIA_ATTR_LAUNCHER 0x06 |
| #define RIA_ATTR_LRAND 0x04 |
| #define RIA_ATTR_PHI2_KHZ 0x01 |
| #define RIA_ATTR_RLN_CAPS 0x09 |
| #define RIA_ATTR_RLN_HEIGHT 0x0B |
| #define RIA_ATTR_RLN_LENGTH 0x03 |
| #define RIA_ATTR_RLN_SUPPRESS_NL 0x0C |
| #define RIA_ATTR_RLN_WIDTH 0x0A |
| #define RIA_ATTR_SIGINT 0x08 |
| #define RIA_OP_ARGV 0x08 |
| #define RIA_OP_ATTR_GET 0x0A |
| #define RIA_OP_ATTR_SET 0x0B |
| #define RIA_OP_CHDIR 0x29 |
| #define RIA_OP_CHMOD 0x26 |
| #define RIA_OP_CLOSE 0x15 |
| #define RIA_OP_CLOSEDIR 0x22 |
| #define RIA_OP_DROP_XSTACK 0x00 |
| #define RIA_OP_EXEC 0x09 |
| #define RIA_OP_EXIT 0xFF |
| #define RIA_OP_GETCWD 0x2B |
| #define RIA_OP_GETFREE 0x2E |
| #define RIA_OP_GETLABEL 0x2D |
| #define RIA_OP_GMTIME 0x3A |
| #define RIA_OP_LOCALTIME 0x3B |
| #define RIA_OP_LSEEK 0x1D |
| #define RIA_OP_LSEEK_CC65 0x1A |
| #define RIA_OP_LSEEK_LLVM 0x1D |
| #define RIA_OP_MKDIR 0x28 |
| #define RIA_OP_MKTIME 0x3C |
| #define RIA_OP_OPEN 0x14 |
| #define RIA_OP_OPENDIR 0x20 |
| #define RIA_OP_READ_XRAM 0x17 |
| #define RIA_OP_READ_XSTACK 0x16 |
| #define RIA_OP_READDIR 0x21 |
| #define RIA_OP_REMOVE 0x1B |
| #define RIA_OP_RENAME 0x1C |
| #define RIA_OP_REWINDDIR 0x25 |
| #define RIA_OP_RLN_LASTKEY 0x30 |
| #define RIA_OP_RLN_PEEK 0x31 |
| #define RIA_OP_RLN_POKE 0x32 |
| #define RIA_OP_SEEKDIR 0x24 |
| #define RIA_OP_SETLABEL 0x2C |
| #define RIA_OP_STAT 0x1F |
| #define RIA_OP_STRFTIME 0x3D |
| #define RIA_OP_SYNCFS 0x1E |
| #define RIA_OP_TELLDIR 0x23 |
| #define RIA_OP_TIME_GET 0x3F |
| #define RIA_OP_TIME_SET 0x3E |
| #define RIA_OP_UTIME 0x27 |
| #define RIA_OP_WRITE_XRAM 0x19 |
| #define RIA_OP_WRITE_XSTACK 0x18 |
| #define RIA_OP_XREG 0x01 |
| #define VIA (*(volatile struct __6522 *)0xFFD0) |
| #define xreg | ( | d, | |
| c, | |||
| i, | |||
| ... | |||
| ) | xregn(d, c, i, sizeof((long[]){__VA_ARGS__}) / sizeof(long), __VA_ARGS__) |
| int f_chmod | ( | const char * | path, |
| unsigned char | attr, | ||
| unsigned char | mask | ||
| ) |
| int f_closedir | ( | int | dirdes | ) |
| int f_getfree | ( | const char * | drive, |
| unsigned long * | free, | ||
| unsigned long * | total | ||
| ) |
| int f_getlabel | ( | const char * | drive, |
| char * | label | ||
| ) |
| long f_lseek | ( | long | offset, |
| char | whence, | ||
| int | fildes | ||
| ) |
| int f_mkdir | ( | const char * | name | ) |
| int f_opendir | ( | const char * | name | ) |
| int f_readdir | ( | f_stat_t * | dirent, |
| int | dirdes | ||
| ) |
| int f_rewinddir | ( | int | dirdes | ) |
| int f_seekdir | ( | long | loc, |
| int | dirdes | ||
| ) |
| int f_setlabel | ( | const char * | name | ) |
| int f_stat | ( | const char * | path, |
| f_stat_t * | dirent | ||
| ) |
| long f_telldir | ( | int | dirdes | ) |
| int f_utime | ( | const char * | path, |
| unsigned | fdate, | ||
| unsigned | ftime, | ||
| unsigned | crdate, | ||
| unsigned | crtime | ||
| ) |
| int read_xram | ( | unsigned | xaddr, |
| unsigned | count, | ||
| int | fildes | ||
| ) |
| int read_xstack | ( | void * | buf, |
| unsigned | count, | ||
| int | fildes | ||
| ) |
| long ria_attr_get | ( | unsigned char | id | ) |
| int ria_attr_set | ( | long | val, |
| unsigned char | id | ||
| ) |
| void ria_drop | ( | void | ) |
| int ria_execl | ( | const char * | path, |
| ... | |||
| ) |
| int ria_execv | ( | const char * | path, |
| char *const | argv[] | ||
| ) |
| unsigned char ria_irq_read | ( | void | ) |
| void ria_irq_write | ( | unsigned char | mask | ) |
| int ria_rln_lastkey | ( | char * | key, |
| unsigned char * | action | ||
| ) |
| int ria_rln_peek | ( | char * | peek, |
| unsigned char * | pos | ||
| ) |
| int ria_rln_poke | ( | const char * | poke | ) |
| unsigned char ria_vsync | ( | void | ) |
| int time_set | ( | long long | time | ) |
| int write_xram | ( | unsigned | xaddr, |
| unsigned | count, | ||
| int | fildes | ||
| ) |
| int write_xstack | ( | const void * | buf, |
| unsigned | count, | ||
| int | fildes | ||
| ) |
| unsigned xram0_peek16 | ( | unsigned | addr | ) |
| unsigned char xram0_peek8 | ( | unsigned | addr | ) |
| void xram0_poke16 | ( | unsigned | addr, |
| unsigned | val | ||
| ) |
| void xram0_poke8 | ( | unsigned | addr, |
| unsigned char | val | ||
| ) |
| void xram0_read | ( | void * | dest, |
| unsigned | src, | ||
| unsigned | count | ||
| ) |
| void xram0_set | ( | unsigned | dest, |
| unsigned char | val, | ||
| unsigned | count | ||
| ) |
| void xram0_write | ( | unsigned | dest, |
| const void * | src, | ||
| unsigned | count | ||
| ) |
| unsigned xram1_peek16 | ( | unsigned | addr | ) |
| unsigned char xram1_peek8 | ( | unsigned | addr | ) |
| void xram1_poke16 | ( | unsigned | addr, |
| unsigned | val | ||
| ) |
| void xram1_poke8 | ( | unsigned | addr, |
| unsigned char | val | ||
| ) |
| void xram1_read | ( | void * | dest, |
| unsigned | src, | ||
| unsigned | count | ||
| ) |
| void xram1_set | ( | unsigned | dest, |
| unsigned char | val, | ||
| unsigned | count | ||
| ) |
| void xram1_write | ( | unsigned | dest, |
| const void * | src, | ||
| unsigned | count | ||
| ) |
| void xram_move | ( | unsigned | dest, |
| unsigned | src, | ||
| unsigned | count | ||
| ) |
| int xregn | ( | char | device, |
| char | channel, | ||
| unsigned char | index, | ||
| unsigned | count, | ||
| ... | |||
| ) |