libc8
CHIP-8 utility library
|
Represents current state of the CHIP-8 interpreter. More...
#include <chip8.h>
Data Fields | |
uint8_t | mem [C8_MEMSIZE] |
uint8_t | R [8] |
uint8_t | V [16] |
uint8_t | sp |
uint8_t | dt |
uint8_t | st |
uint16_t | stack [C8_STACK_SIZE] |
uint16_t | pc |
uint16_t | I |
int | key [18] |
int | VK |
int | cs |
int | waitingForKey |
int | running |
c8_display_t | display |
int | flags |
int | breakpoints [C8_MEMSIZE] |
int | colors [2] |
int | fonts [2] |
int | draw |
Represents current state of the CHIP-8 interpreter.
mem | CHIP-8 memory |
R | flag registers |
V | V (general purpose) registers |
sp | stack pointer |
dt | display timer |
st | sound timer |
stack | stack |
pc | program counter |
I | I (address) register |
key | key press states |
VK | V to store next keypress |
cs | instructions to execute per second |
waitingForKey | 1 or 0 |
running | 1 or 0 |
display | graphics display |
flags | CLI flags |
breakpoints | debug breakpoint map |
colors | 24 bit hex colors, background=[0] foreground=[1] |
fonts | font IDs (see font.c) |
draw | need to draw? (1 or 0) |
int breakpoints[C8_MEMSIZE] |
int colors[2] |
int cs |
c8_display_t display |
int draw |
uint8_t dt |
int flags |
int fonts[2] |
uint16_t I |
int key[18] |
uint8_t mem[C8_MEMSIZE] |
uint16_t pc |
uint8_t R[8] |
int running |
uint8_t sp |
uint8_t st |
uint16_t stack[C8_STACK_SIZE] |
uint8_t V[16] |
int VK |
int waitingForKey |