Skip to content

Commit

Permalink
Integrate TomHarte's processor tests for 65816
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Oct 11, 2023
1 parent 563537a commit 9123180
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 2 deletions.
51 changes: 51 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ default-run = "souper"

[dependencies]
anyhow = { version = "1.0.75", features = ["backtrace"] }
dbg_hex = "0.1.1"
downcast-rs = "1.2.0"
num-derive = "0.4.0"
num-traits = "0.2.16"
serde_json = "1.0.107"
strum = { version = "0.25.0", features = ["derive"] }
thiserror = "1.0.49"
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
pub mod snes;
pub mod tickable;

#[cfg(test)]
pub mod test;
4 changes: 2 additions & 2 deletions src/snes/cpu_65816/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use super::regs::{Flag, RegisterFile};

/// Main SNES CPU (65816)
pub struct Cpu65816<TBus: Bus> {
bus: TBus,
regs: RegisterFile,
pub bus: TBus,
pub regs: RegisterFile,
cycles: Ticks,
}

Expand Down
1 change: 1 addition & 0 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod processortests_65816;
Loading

0 comments on commit 9123180

Please sign in to comment.