Fix copy paste errors and read-out-of-bounds check
This commit is contained in:
parent
33b6d0218e
commit
beab7c968b
@ -137,7 +137,7 @@ pub enum Insn {
|
|||||||
/// | 00ff | Enter high-resolution mode
|
/// | 00ff | Enter high-resolution mode
|
||||||
#[opcode = "0x00ff"]
|
#[opcode = "0x00ff"]
|
||||||
hires,
|
hires,
|
||||||
/// | fx30 | Enter high-resolution mode
|
/// | fx30 | Load hires font address into vX
|
||||||
#[opcode = "0xfx30"]
|
#[opcode = "0xfx30"]
|
||||||
hfont { x: usize },
|
hfont { x: usize },
|
||||||
/// | fx75 | Save to "flag registers"
|
/// | fx75 | Save to "flag registers"
|
||||||
|
@ -1149,7 +1149,7 @@ mod behavior {
|
|||||||
fn invalid_pc() {
|
fn invalid_pc() {
|
||||||
let (mut cpu, mut bus) = setup_environment();
|
let (mut cpu, mut bus) = setup_environment();
|
||||||
// The bus extends from 0x0..0x1000
|
// The bus extends from 0x0..0x1000
|
||||||
cpu.pc = 0xfff;
|
cpu.pc = 0x1001;
|
||||||
match cpu.tick(&mut bus) {
|
match cpu.tick(&mut bus) {
|
||||||
Err(Error::InvalidAddressRange { range }) => {
|
Err(Error::InvalidAddressRange { range }) => {
|
||||||
eprintln!("InvalidAddressRange {{ {range:04x?} }}")
|
eprintln!("InvalidAddressRange {{ {range:04x?} }}")
|
||||||
|
Loading…
Reference in New Issue
Block a user