29 lines
517 B
Rust
29 lines
517 B
Rust
|
//! Tests from the JSMoo emulator, which are wonderfully provided on their Github
|
||
|
//! https://github.com/raddad772/jsmoo/tree/main/misc/tests/GeneratedTests/sm83/v1
|
||
|
|
||
|
use serde_derive::Deserialize;
|
||
|
|
||
|
mod tests;
|
||
|
|
||
|
#[derive(Deserialize, Debug)]
|
||
|
struct TestState {
|
||
|
pc: u16,
|
||
|
sp: u16,
|
||
|
a: u8,
|
||
|
b: u8,
|
||
|
c: u8,
|
||
|
d: u8,
|
||
|
e: u8,
|
||
|
f: u8,
|
||
|
h: u8,
|
||
|
l: u8,
|
||
|
ram: Vec<(u16, u8)>,
|
||
|
}
|
||
|
|
||
|
#[derive(Deserialize, Debug)]
|
||
|
struct TestCase {
|
||
|
name: String,
|
||
|
initial: TestState,
|
||
|
r#final: TestState,
|
||
|
}
|