Skip to content
Snippets Groups Projects
Verified Commit f15167e6 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

test: add more registers validation

parent 57340842
No related branches found
No related tags found
1 merge request!41Support for address based testing
...@@ -75,6 +75,12 @@ mod tests { ...@@ -75,6 +75,12 @@ mod tests {
TestOptions::default(), TestOptions::default(),
); );
assert_eq!(result.cpu_i().pc(), 0x0100); assert_eq!(result.cpu_i().pc(), 0x0100);
assert_eq!(result.cpu_i().sp(), 0xfffe);
assert_eq!(result.cpu_i().af(), 0x01b0);
assert_eq!(result.cpu_i().bc(), 0x0013);
assert_eq!(result.cpu_i().de(), 0x00d8);
assert_eq!(result.cpu_i().hl(), 0x014d);
assert_eq!(result.cpu_i().ime(), false);
} }
#[test] #[test]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment