From 043b7f33383e6d0b6fa15b61b7c817b96fe9ca36 Mon Sep 17 00:00:00 2001 From: "Adrian.Conlon" Date: Mon, 14 Aug 2017 10:36:19 +0100 Subject: [PATCH] Another tested GB instruction. Signed-off-by: Adrian.Conlon --- .../fuse-tests/tests.expected | 18 +++++++------ LR35902/fusetest_LR35902/fuse-tests/tests.in | 25 +++++++++++-------- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/LR35902/fusetest_LR35902/fuse-tests/tests.expected b/LR35902/fusetest_LR35902/fuse-tests/tests.expected index 73902e3..6ddeb1d 100644 --- a/LR35902/fusetest_LR35902/fuse-tests/tests.expected +++ b/LR35902/fusetest_LR35902/fuse-tests/tests.expected @@ -4966,11 +4966,19 @@ f7 0 11 5505 34 6d -1 +f8 +0 MC 0000 +4 MR 0000 f8 +4 MC 0001 +0000 0000 0000 1001 1000 0002 +0 5 + + f8_1 0 MC 0000 4 MR 0000 f8 4 MC 0001 -0020 0000 0000 0000 43f7 0001 +0010 0000 0000 0000 fffe 0002 0 5 @@ -4978,12 +4986,8 @@ f8_2 0 MC 0000 4 MR 0000 f8 4 MC 0001 -5 MC 43f7 -8 MR 43f7 e9 -8 MC 43f8 -11 MR 43f8 af -0020 0000 0000 0000 43f9 afe9 -0 11 +0000 0000 0000 0fff 1000 0002 +0 5 f9 diff --git a/LR35902/fusetest_LR35902/fuse-tests/tests.in b/LR35902/fusetest_LR35902/fuse-tests/tests.in index 8b3b658..1ca97e2 100644 --- a/LR35902/fusetest_LR35902/fuse-tests/tests.in +++ b/LR35902/fusetest_LR35902/fuse-tests/tests.in @@ -3618,20 +3618,25 @@ f7 6d33 f7 -1 -1 -; (GB) LD HL,SP + dd -f8_1 -0020 0000 0000 0000 43f7 0000 +; (GB) LD HL,SP + dd (positive, no carry or half carry) +f8 +00c0 0000 0000 1234 1000 0000 0 1 -0000 f8 -1 -43f7 e9 af -1 +0000 f8 01 -1 -1 -; (GB) LD HL,SP + dd -f8_2 -0020 0000 0000 0000 43f7 0000 +; (GB) LD HL,SP + dd (positive, carry, no half carry) +f8_1 +00c0 0000 0000 1234 fffe 0000 0 1 -0000 f8 -1 -43f7 e9 af -1 +0000 f8 02 -1 +-1 + +; (GB) LD HL,SP + dd (negative, no carry or half carry) +f8_2 +00c0 0000 0000 1234 1000 0000 +0 1 +0000 f8 ff -1 -1 f9