|
llvm-mos-sdk
|
Go to the source code of this file.
Classes | |
| struct | f_stat_t |
| struct | vga_mode1_config_t |
| struct | vga_mode2_config_t |
| struct | vga_mode3_config_t |
| struct | vga_mode4_sprite_t |
| struct | vga_mode4_asprite_t |
Macros | |
| #define | RIA (*(volatile struct __RP6502 *)0xFFE0) |
| #define | RIA_READY_TX_BIT 0x80 |
| #define | RIA_READY_RX_BIT 0x40 |
| #define | RIA_BUSY_BIT 0x80 |
| #define | ria_push_char(v) RIA.xstack = v |
| #define | ria_pop_char() RIA.xstack |
| #define | ria_set_a(v) RIA.a = v |
| #define | RIA_OP_EXIT 0xFF |
| #define | RIA_OP_ZXSTACK 0x00 |
| #define | RIA_OP_XREG 0x01 |
| #define | RIA_OP_PHI2 0x02 |
| #define | RIA_OP_CODE_PAGE 0x03 |
| #define | RIA_OP_LRAND 0x04 |
| #define | RIA_OP_STDIN_OPT 0x05 |
| #define | RIA_OP_ERRNO_OPT 0x06 |
| #define | RIA_OP_CLOCK 0x0F |
| #define | RIA_OP_CLOCK_GETRES 0x10 |
| #define | RIA_OP_CLOCK_GETTIME 0x11 |
| #define | RIA_OP_CLOCK_SETTIME 0x12 |
| #define | RIA_OP_CLOCK_GETTIMEZONE 0x13 |
| #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_UNLINK 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_CHDRIVE 0x2A |
| #define | RIA_OP_GETCWD 0x2B |
| #define | RIA_OP_SETLABEL 0x2C |
| #define | RIA_OP_GETLABEL 0x2D |
| #define | RIA_OP_GETFREE 0x2E |
| #define | xreg__(_16, _15, _14, _13, _12, _11, _10, _9, _8, _7, _6, _5, _4, _3, _2, _1, count, ...) count |
| #define | xreg_(...) xreg__(__VA_ARGS__, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) |
| #define | xreg(d, c, a, ...) xregn(d, c, a, xreg_(__VA_ARGS__), __VA_ARGS__) |
| #define | xreg_ria_keyboard(...) xreg(0, 0, 0, __VA_ARGS__) |
| #define | xreg_ria_mouse(...) xreg(0, 0, 1, __VA_ARGS__) |
| #define | xreg_ria_gamepad(...) xreg(0, 0, 2, __VA_ARGS__) |
| #define | xreg_vga_canvas(...) xreg(1, 0, 0, __VA_ARGS__) |
| #define | xreg_vga_mode(...) xreg(1, 0, 1, __VA_ARGS__) |
| #define | xram0_struct_set(addr, type, member, val) |
| #define | xram1_struct_set(addr, type, member, val) |
Functions | |
| void | ria_push_long (unsigned long val) |
| void | ria_push_int (unsigned int val) |
| long | ria_pop_long (void) |
| int | ria_pop_int (void) |
| void | ria_set_axsreg (unsigned long axsreg) |
| void | ria_set_ax (unsigned int ax) |
| int | ria_call_int (unsigned char op) |
| long | ria_call_long (unsigned char op) |
| int | xregn (char device, char channel, unsigned char address, unsigned count,...) |
| int | phi2 (void) |
| int | code_page (int) |
| long | lrand (void) |
| int | stdin_opt (unsigned long ctrl_bits, unsigned char str_length) |
| int | read_xstack (void *buf, unsigned count, int fildes) |
| int | read_xram (unsigned buf, unsigned count, int fildes) |
| int | write_xstack (const void *buf, unsigned count, int fildes) |
| int | write_xram (unsigned buf, unsigned count, int fildes) |
| long | f_lseek (long offset, int 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 offs, 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_chdrive (const char *name) |
| int | f_getcwd (char *name, int size) |
| int | f_setlabel (const char *name) |
| int | f_getlabel (const char *path, char *label) |
| int | f_getfree (const char *name, unsigned long *free, unsigned long *total) |
| #define RIA (*(volatile struct __RP6502 *)0xFFE0) |
| #define RIA_BUSY_BIT 0x80 |
| #define RIA_OP_CHDIR 0x29 |
| #define RIA_OP_CHDRIVE 0x2A |
| #define RIA_OP_CHMOD 0x26 |
| #define RIA_OP_CLOCK 0x0F |
| #define RIA_OP_CLOCK_GETRES 0x10 |
| #define RIA_OP_CLOCK_GETTIME 0x11 |
| #define RIA_OP_CLOCK_GETTIMEZONE 0x13 |
| #define RIA_OP_CLOCK_SETTIME 0x12 |
| #define RIA_OP_CLOSE 0x15 |
| #define RIA_OP_CLOSEDIR 0x22 |
| #define RIA_OP_CODE_PAGE 0x03 |
| #define RIA_OP_ERRNO_OPT 0x06 |
| #define RIA_OP_EXIT 0xFF |
| #define RIA_OP_GETCWD 0x2B |
| #define RIA_OP_GETFREE 0x2E |
| #define RIA_OP_GETLABEL 0x2D |
| #define RIA_OP_LRAND 0x04 |
| #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_OPEN 0x14 |
| #define RIA_OP_OPENDIR 0x20 |
| #define RIA_OP_PHI2 0x02 |
| #define RIA_OP_READ_XRAM 0x17 |
| #define RIA_OP_READ_XSTACK 0x16 |
| #define RIA_OP_READDIR 0x21 |
| #define RIA_OP_RENAME 0x1C |
| #define RIA_OP_REWINDDIR 0x25 |
| #define RIA_OP_SEEKDIR 0x24 |
| #define RIA_OP_SETLABEL 0x2C |
| #define RIA_OP_STAT 0x1F |
| #define RIA_OP_STDIN_OPT 0x05 |
| #define RIA_OP_SYNCFS 0x1E |
| #define RIA_OP_TELLDIR 0x23 |
| #define RIA_OP_UNLINK 0x1B |
| #define RIA_OP_UTIME 0x27 |
| #define RIA_OP_WRITE_XRAM 0x19 |
| #define RIA_OP_WRITE_XSTACK 0x18 |
| #define RIA_OP_XREG 0x01 |
| #define RIA_OP_ZXSTACK 0x00 |
| #define ria_pop_char | ( | ) | RIA.xstack |
| #define ria_push_char | ( | v | ) | RIA.xstack = v |
| #define RIA_READY_RX_BIT 0x40 |
| #define RIA_READY_TX_BIT 0x80 |
| #define ria_set_a | ( | v | ) | RIA.a = v |
| #define xram0_struct_set | ( | addr, | |
| type, | |||
| member, | |||
| val | |||
| ) |
| #define xram1_struct_set | ( | addr, | |
| type, | |||
| member, | |||
| val | |||
| ) |
| #define xreg_ | ( | ... | ) | xreg__(__VA_ARGS__, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1) |
| #define xreg__ | ( | _16, | |
| _15, | |||
| _14, | |||
| _13, | |||
| _12, | |||
| _11, | |||
| _10, | |||
| _9, | |||
| _8, | |||
| _7, | |||
| _6, | |||
| _5, | |||
| _4, | |||
| _3, | |||
| _2, | |||
| _1, | |||
| count, | |||
| ... | |||
| ) | count |
| #define xreg_ria_gamepad | ( | ... | ) | xreg(0, 0, 2, __VA_ARGS__) |
| #define xreg_ria_keyboard | ( | ... | ) | xreg(0, 0, 0, __VA_ARGS__) |
| #define xreg_ria_mouse | ( | ... | ) | xreg(0, 0, 1, __VA_ARGS__) |
| #define xreg_vga_canvas | ( | ... | ) | xreg(1, 0, 0, __VA_ARGS__) |
| #define xreg_vga_mode | ( | ... | ) | xreg(1, 0, 1, __VA_ARGS__) |
| int code_page | ( | int | ) |
| int f_chdrive | ( | const char * | name | ) |
| int f_chmod | ( | const char * | path, |
| unsigned char | attr, | ||
| unsigned char | mask | ||
| ) |
| int f_closedir | ( | int | dirdes | ) |
| int f_getcwd | ( | char * | name, |
| int | size | ||
| ) |
| int f_getfree | ( | const char * | name, |
| unsigned long * | free, | ||
| unsigned long * | total | ||
| ) |
| int f_getlabel | ( | const char * | path, |
| char * | label | ||
| ) |
| long f_lseek | ( | long | offset, |
| int | 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 | offs, |
| 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 | ||
| ) |
| long lrand | ( | void | ) |
| int phi2 | ( | void | ) |
| int read_xram | ( | unsigned | buf, |
| unsigned | count, | ||
| int | fildes | ||
| ) |
| int read_xstack | ( | void * | buf, |
| unsigned | count, | ||
| int | fildes | ||
| ) |
| int ria_call_int | ( | unsigned char | op | ) |
| long ria_call_long | ( | unsigned char | op | ) |
| int ria_pop_int | ( | void | ) |
| long ria_pop_long | ( | void | ) |
| void ria_push_int | ( | unsigned int | val | ) |
| void ria_push_long | ( | unsigned long | val | ) |
| void ria_set_ax | ( | unsigned int | ax | ) |
| void ria_set_axsreg | ( | unsigned long | axsreg | ) |
| int stdin_opt | ( | unsigned long | ctrl_bits, |
| unsigned char | str_length | ||
| ) |
| int write_xram | ( | unsigned | buf, |
| unsigned | count, | ||
| int | fildes | ||
| ) |
| int write_xstack | ( | const void * | buf, |
| unsigned | count, | ||
| int | fildes | ||
| ) |
| int xregn | ( | char | device, |
| char | channel, | ||
| unsigned char | address, | ||
| unsigned | count, | ||
| ... | |||
| ) |