aboutsummaryrefslogtreecommitdiff
path: root/src/chip8.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chip8.hpp')
-rw-r--r--src/chip8.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chip8.hpp b/src/chip8.hpp
index f144341..a2c4bdf 100644
--- a/src/chip8.hpp
+++ b/src/chip8.hpp
@@ -3,6 +3,7 @@
#include <cstdint>
#include <random>
+#include <bitset>
const uint32_t VIDEO_HEIGHT = 32;
const uint32_t VIDEO_WIDTH = 64;
@@ -24,7 +25,7 @@ class Chip8 {
uint8_t soundTimer {};
uint8_t keypad[16] {};
- uint32_t video[VIDEO_WIDTH * VIDEO_HEIGHT] {};
+ std::bitset<4096> video;
uint16_t opcode;