Avances y correccion basica, funciona pero con detalles
This commit is contained in:
@@ -16,9 +16,12 @@ class Chip8 {
|
||||
double accumulator;
|
||||
|
||||
std::span<const bool> keyboard_state;
|
||||
bool run;
|
||||
bool step;
|
||||
|
||||
void load_keyboard();
|
||||
|
||||
void execute_instructions();
|
||||
void execute_instruction();
|
||||
public:
|
||||
Chip8();
|
||||
|
||||
@@ -29,6 +32,7 @@ public:
|
||||
std::vector<uint8_t> read_rom(const std::string& path);
|
||||
|
||||
void set_keyboard_state(std::span<const bool> keyboard_state);
|
||||
void on_keydown(SDL_Scancode scancode);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user