|
libc8
CHIP-8 utility library
|
Go to the source code of this file.
Macros | |
| #define | C8_STATIC static |
| #define | C8_INLINE inline |
| #define | C8_VERSION "unknown" |
| Version of libc8. | |
| #define | C8_X(i) ((i & 0x0F00) >> 8) |
| Get "x" value of the given opcode. | |
| #define | C8_Y(i) ((i & 0x00F0) >> 4) |
| Get "y" value of the given opcode. | |
| #define | C8_NNN(i) (i & 0x0FFF) |
| Get "nnn" value of the given opcode. | |
| #define | C8_A(i) ((i & 0xF000) >> 12) |
| Get "a" value of the given opcode. | |
| #define | C8_B(i) (i & 0x000F) |
| Get "b" value of the given opcode. | |
| #define | C8_KK(i) (i & 0x00FF) |
| Get "kk" value of the given opcode. | |
| #define | C8_EXPAND(i) |
| Define variables for conventional sections of opcode (x, y, nnn, a, b, and kk). | |
| #define | C8_PROG_START 0x200 |
| Program start address. | |
| #define | C8_MEMSIZE 0x1000 |
| Total memory size. | |
Base CHIP-8 definitions/macros
| #define C8_A | ( | i | ) | ((i & 0xF000) >> 12) |
Get "a" value of the given opcode.
| #define C8_B | ( | i | ) | (i & 0x000F) |
Get "b" value of the given opcode.
| #define C8_EXPAND | ( | i | ) |
| #define C8_INLINE inline |
| #define C8_KK | ( | i | ) | (i & 0x00FF) |
Get "kk" value of the given opcode.
| #define C8_MEMSIZE 0x1000 |
Total memory size.
| #define C8_NNN | ( | i | ) | (i & 0x0FFF) |
Get "nnn" value of the given opcode.
| #define C8_PROG_START 0x200 |
Program start address.
| #define C8_STATIC static |
| #define C8_VERSION "unknown" |
Version of libc8.
| #define C8_X | ( | i | ) | ((i & 0x0F00) >> 8) |
Get "x" value of the given opcode.
| #define C8_Y | ( | i | ) | ((i & 0x00F0) >> 4) |
Get "y" value of the given opcode.