Skip to content

Commit

Permalink
SPC700: stub SLEEP/STOP, done!
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Nov 26, 2023
1 parent c14229d commit d416f78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/snes/cpu_spc700/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!"),
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/test/processortests_spc700.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

0 comments on commit d416f78

Please sign in to comment.