more opcodes

This commit is contained in:
2025-07-15 12:38:46 +02:00
parent 53b90af719
commit df162fd642
2 changed files with 115 additions and 37 deletions

View File

@@ -344,11 +344,11 @@ void chip8_step(CHIP8 *c) {
c->reg[x] = c->delay_timer;
break;
case 0x0A: {
bool key_pressed = false;
uint8_t key_pressed = 0;
while (!key_pressed && WindowShouldClose()) {
for (size_t i = 0; i < 16; i++) {
if (IsKeyDown(keyboard_map[i])) {
key_pressed = true;
key_pressed = 1;
break;
}
}