23 lines
378 B
C
23 lines
378 B
C
#ifndef __CHIP8_H
|
|
#define __CHIP8_H
|
|
|
|
#include "config.h"
|
|
#include "keyboard.h"
|
|
#include "mem.h"
|
|
#include "registers.h"
|
|
#include "screen.h"
|
|
#include "stack.h"
|
|
|
|
struct chip8
|
|
{
|
|
struct chip8_memory memory;
|
|
struct chip8_registers registers;
|
|
struct chip8_stack stack;
|
|
struct chip8_keyboard keyboard;
|
|
struct chip8_screen screen;
|
|
};
|
|
|
|
void chip8_init (struct chip8 *chip8);
|
|
|
|
#endif
|