diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2021-07-19 15:09:40 +0100 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2021-07-19 15:09:40 +0100 |
commit | fc3b7e70867d0a6ce89c139e4ddc0d66329fea11 (patch) | |
tree | 2f736f37c18817593cf4cd4c3ecf7adb975c6626 /emulator.h | |
parent | Feature: Added a font (diff) | |
download | CHIP8-Emulator-fc3b7e70867d0a6ce89c139e4ddc0d66329fea11.tar.gz CHIP8-Emulator-fc3b7e70867d0a6ce89c139e4ddc0d66329fea11.tar.bz2 CHIP8-Emulator-fc3b7e70867d0a6ce89c139e4ddc0d66329fea11.zip |
Misc: Properly intialise the emulator
Diffstat (limited to 'emulator.h')
-rw-r--r-- | emulator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/emulator.h b/emulator.h index cfbbeff..50fa9de 100644 --- a/emulator.h +++ b/emulator.h @@ -2,6 +2,7 @@ #define _EMULATOR_H_ #include <stdio.h> +#include <config.h> #include <sys/stat.h> #include <string.h> @@ -35,6 +36,8 @@ typedef struct Registers regs; uint8_t sp; //stack pointer uint16_t stack[16]; + volatile uint8_t delay_timer; + volatile uint8_t sound_timer; uint8_t memory[4096]; } Emulator; |