From d416f780860da52b7eb558a672ec0ec15524d470 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 26 Nov 2023 08:25:33 +0100 Subject: [PATCH] SPC700: stub SLEEP/STOP, done! --- src/snes/cpu_spc700/cpu.rs | 2 +- src/test/processortests_spc700.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/snes/cpu_spc700/cpu.rs b/src/snes/cpu_spc700/cpu.rs index 9e3c57d..cd9f7b5 100644 --- a/src/snes/cpu_spc700/cpu.rs +++ b/src/snes/cpu_spc700/cpu.rs @@ -283,7 +283,7 @@ where InstructionType::TSET1 => self.op_tsetclr1(instr, true), InstructionType::TCLR1 => self.op_tsetclr1(instr, false), - _ => todo!(), + InstructionType::SLEEP | InstructionType::STOP => panic!("SPC700 halted!"), } } diff --git a/src/test/processortests_spc700.rs b/src/test/processortests_spc700.rs index 8d087ed..929aa2e 100644 --- a/src/test/processortests_spc700.rs +++ b/src/test/processortests_spc700.rs @@ -439,6 +439,7 @@ cpu_test!(instr_eb, 0xeb); cpu_test!(instr_ec, 0xec); cpu_test!(instr_ed, 0xed); cpu_test!(instr_ee, 0xee); +// HALT //cpu_test!(instr_ef, 0xef); cpu_test!(instr_f0, 0xf0); cpu_test!(instr_f1, 0xf1); @@ -456,4 +457,5 @@ cpu_test!(instr_fb, 0xfb); cpu_test!(instr_fc, 0xfc); cpu_test!(instr_fd, 0xfd); cpu_test!(instr_fe, 0xfe); +// STOP //cpu_test!(instr_ff, 0xff);