From 2644f9a0fecaf75df0af021d880658933d2bd94b Mon Sep 17 00:00:00 2001 From: Atreya Bain Date: Mon, 4 Mar 2024 20:37:15 +0530 Subject: [PATCH] [cpu] add flag for chip8 instruction compatibility --- src/device/device.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/device/device.rs b/src/device/device.rs index f695ed3..1c5c274 100644 --- a/src/device/device.rs +++ b/src/device/device.rs @@ -14,7 +14,8 @@ pub struct Device { pub memory: Box<[u8; Self::DEVICE_MEMORY_SIZE]>, pub timer: Timer, pub stack: Vec, - pub frame_buffer: Arc>> + pub frame_buffer: Arc>>, + pub super_chip8_mode: bool } impl Device { @@ -31,6 +32,7 @@ impl Device { frame_buffer: fb, stack: Vec::with_capacity(16), timer, + super_chip8_mode: false } } }