|
libc8
CHIP-8 utility library
|
Represents current state of the CHIP-8 interpreter. More...
#include <chip8.h>
Data Fields | |
| uint8_t | mem [0x1000] |
| CHIP-8 memory. | |
| uint8_t | R [8] |
| Flag registers. | |
| uint8_t | V [16] |
| General purpose registers. | |
| uint8_t | sp |
| Stack pointer. | |
| uint8_t | dt |
| Delay timer. | |
| uint8_t | st |
| Sound timer. | |
| uint16_t | stack [16] |
| Stack. | |
| uint16_t | pc |
| Program counter. | |
| uint16_t | I |
| Address register. | |
| int | key [18] |
| Key press states. | |
| int | VK |
| Register to store next keypress. | |
| int | cs |
| Instructions to execute per second. | |
| int | waitingForKey |
| Waiting for keypress? | |
| int | running |
| Interpreter running state. | |
| C8_Display | display |
| Graphics display. | |
| int | flags |
| CLI flags. | |
| int | breakpoints [0x1000] |
| Debug breakpoint map. | |
| int | colors [2] |
| 24 bit hex colors, background=[0] foreground=[1] | |
| int | fonts [2] |
| Font IDs (see font.c) | |
| int | draw |
| Need to draw? (1 or 0) | |
| int | mode |
| Interpreter mode (C8_MODE_CHIP8, C8_MODE_SCHIP, C8_MODE_XOCHIP) | |
Represents current state of the CHIP-8 interpreter.
| int breakpoints[0x1000] |
Debug breakpoint map.
| int colors[2] |
24 bit hex colors, background=[0] foreground=[1]
| int cs |
Instructions to execute per second.
| C8_Display display |
Graphics display.
| int draw |
Need to draw? (1 or 0)
| uint8_t dt |
Delay timer.
| int flags |
CLI flags.
| int fonts[2] |
Font IDs (see font.c)
| uint16_t I |
Address register.
| int key[18] |
Key press states.
| uint8_t mem[0x1000] |
CHIP-8 memory.
| int mode |
Interpreter mode (C8_MODE_CHIP8, C8_MODE_SCHIP, C8_MODE_XOCHIP)
| uint16_t pc |
Program counter.
| uint8_t R[8] |
Flag registers.
| int running |
Interpreter running state.
| uint8_t sp |
Stack pointer.
| uint8_t st |
Sound timer.
| uint16_t stack[16] |
Stack.
| uint8_t V[16] |
General purpose registers.
| int VK |
Register to store next keypress.
| int waitingForKey |
Waiting for keypress?