diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2021-07-19 14:43:22 +0100 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2021-07-19 14:43:22 +0100 |
commit | f24b01fa9967873e575a56541c9dc7fd4a32eb45 (patch) | |
tree | d89fd6e584d98de09bded3cc119cc214ed746349 /emulator.h | |
parent | Feature: Added registers (diff) | |
download | CHIP8-Emulator-f24b01fa9967873e575a56541c9dc7fd4a32eb45.tar.gz CHIP8-Emulator-f24b01fa9967873e575a56541c9dc7fd4a32eb45.tar.bz2 CHIP8-Emulator-f24b01fa9967873e575a56541c9dc7fd4a32eb45.zip |
Misc: Load roms after 0x200
Diffstat (limited to 'emulator.h')
-rw-r--r-- | emulator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emulator.h b/emulator.h index c8114cb..b685bea 100644 --- a/emulator.h +++ b/emulator.h @@ -23,13 +23,17 @@ typedef struct uint8_t VD; uint8_t VE; uint8_t VF; //flag register + + uint16_t I; // index register } Registers; typedef struct { uint8_t is_on; - uint16_t pc; + uint16_t pc; //program counter Registers regs; + uint8_t sp; //stack pointer + uint16_t stack[16]; uint8_t memory[4096]; } Emulator; |