fix timers bug
This commit is contained in:
parent
db2c360df3
commit
7e956277ac
2 changed files with 5 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
/target
|
||||
/proprietary_roms
|
|
@ -142,7 +142,7 @@ where
|
|||
if self.delay_timer > 0 {
|
||||
self.delay_timer -= 1
|
||||
}
|
||||
if self.sound_timer > 0 {
|
||||
if self.delay_timer > 0 {
|
||||
self.delay_timer -= 1
|
||||
} else {
|
||||
self.do_beep()
|
||||
|
@ -362,13 +362,13 @@ where
|
|||
self.index_register = 0xF0 + (self.registers[vx as usize] & 0x0F) as u16;
|
||||
}
|
||||
ProcessorInstruction::BinaryCodedDecimalConversion(vx) => {
|
||||
// todo!("must implement")
|
||||
todo!("must implement")
|
||||
}
|
||||
ProcessorInstruction::LoadMemory(vx) => {
|
||||
// todo!("must implement")
|
||||
todo!("must implement")
|
||||
}
|
||||
ProcessorInstruction::StoreMemory(vx) => {
|
||||
// todo!("must implement")
|
||||
todo!("must implement")
|
||||
}
|
||||
_ => {
|
||||
warn!("Unknown instruction: {:04x}, skipping.", instruction);
|
||||
|
|
Loading…
Reference in a new issue