From f15167e60eca6fea3f11914c1cf8bc1e9f0f5078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com> Date: Sat, 17 Feb 2024 22:48:53 +0000 Subject: [PATCH] test: add more registers validation --- src/test.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test.rs b/src/test.rs index 0c03599d..cdb90449 100644 --- a/src/test.rs +++ b/src/test.rs @@ -75,6 +75,12 @@ mod tests { TestOptions::default(), ); 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] -- GitLab