[cpu] add flag for chip8 instruction compatibility
This commit is contained in:
@@ -14,7 +14,8 @@ pub struct Device {
|
|||||||
pub memory: Box<[u8; Self::DEVICE_MEMORY_SIZE]>,
|
pub memory: Box<[u8; Self::DEVICE_MEMORY_SIZE]>,
|
||||||
pub timer: Timer,
|
pub timer: Timer,
|
||||||
pub stack: Vec<u16>,
|
pub stack: Vec<u16>,
|
||||||
pub frame_buffer: Arc<Mutex<Box<[bool;64*32]>>>
|
pub frame_buffer: Arc<Mutex<Box<[bool;64*32]>>>,
|
||||||
|
pub super_chip8_mode: bool
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Device {
|
impl Device {
|
||||||
@@ -31,6 +32,7 @@ impl Device {
|
|||||||
frame_buffer: fb,
|
frame_buffer: fb,
|
||||||
stack: Vec::with_capacity(16),
|
stack: Vec::with_capacity(16),
|
||||||
timer,
|
timer,
|
||||||
|
super_chip8_mode: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user