From c10dced63e5b8f56dc16e25d7b956e69e73fa7d3 Mon Sep 17 00:00:00 2001 From: "Adrian.Conlon" Date: Sun, 13 Aug 2017 21:31:28 +0100 Subject: [PATCH] Add test for GB SWAP r instructions. Signed-off-by: Adrian.Conlon --- .../fuse-tests/tests.expected | 18 ++++---- LR35902/fusetest_LR35902/fuse-tests/tests.in | 41 ++++++++----------- 2 files changed, 26 insertions(+), 33 deletions(-) diff --git a/LR35902/fusetest_LR35902/fuse-tests/tests.expected b/LR35902/fusetest_LR35902/fuse-tests/tests.expected index bb386bb..ffc7f5c 100644 --- a/LR35902/fusetest_LR35902/fuse-tests/tests.expected +++ b/LR35902/fusetest_LR35902/fuse-tests/tests.expected @@ -2360,7 +2360,7 @@ cb30 4 MR 0000 cb 4 MC 0001 8 MR 0001 30 -cd00 f581 d67b 656b 0000 0002 +0000 2134 0000 0000 0000 0002 0 8 @@ -2369,7 +2369,7 @@ cb31 4 MR 0000 cb 4 MC 0001 8 MR 0001 31 -2810 e7f5 6d8c 75a4 0000 0002 +0000 1243 0000 0000 0000 0002 0 8 @@ -2378,7 +2378,7 @@ cb32 4 MR 0000 cb 4 MC 0001 8 MR 0001 32 -1310 3f36 ed08 5e56 0000 0002 +0000 0000 2134 0000 0000 0002 0 8 @@ -2387,7 +2387,7 @@ cb33 4 MR 0000 cb 4 MC 0001 8 MR 0001 33 -d500 9720 7689 038f 0000 0002 +0000 0000 1243 0000 0000 0002 0 8 @@ -2396,7 +2396,7 @@ cb34 4 MR 0000 cb 4 MC 0001 8 MR 0001 34 -1210 77f6 0206 f738 0000 0002 +0000 0000 0000 2134 0000 0002 0 8 @@ -2405,7 +2405,7 @@ cb35 4 MR 0000 cb 4 MC 0001 8 MR 0001 35 -3c00 fd68 ea91 78c3 0000 0002 +0000 0000 0000 1243 0000 0002 0 8 @@ -2419,16 +2419,16 @@ cb36 11 MC 6d38 12 MC 6d38 15 MW 6d38 e3 -8a10 1185 1dde 6d38 0000 0002 +0000 0000 0000 1234 0000 0002 0 15 -6d38 e3 -1 +1234 ef -1 cb37 0 MC 0000 4 MR 0000 cb 4 MC 0001 8 MR 0001 37 -8700 d7bc 9133 6e56 0000 0002 +2100 0000 0000 0000 0000 0002 0 8 diff --git a/LR35902/fusetest_LR35902/fuse-tests/tests.in b/LR35902/fusetest_LR35902/fuse-tests/tests.in index c3f499d..2702acb 100644 --- a/LR35902/fusetest_LR35902/fuse-tests/tests.in +++ b/LR35902/fusetest_LR35902/fuse-tests/tests.in @@ -1788,68 +1788,61 @@ aa00 a194 d0e3 5c65 0000 0000 5c65 c9 -1 -1 -; (GB) SWAP +; (GB) SWAP B cb30 -cd00 7a81 d67b 656b 0000 0000 +00f0 1234 0000 0000 0000 0000 0 1 0000 cb 30 -1 -656b 32 -1 -1 -; (GB) SWAP +; (GB) SWAP C cb31 -2800 e7fa 6d8c 75a4 0000 0000 +00f0 1234 0000 0000 0000 0000 0 1 0000 cb 31 -1 -75a4 0c -1 -1 -; (GB) SWAP +; (GB) SWAP D cb32 -1300 3f36 f608 5e56 0000 0000 +00f0 0000 1234 0000 0000 0000 0 1 0000 cb 32 -1 -5e56 8d -1 -1 -; (GB) SWAP +; (GB) SWAP E cb33 -d500 9720 7644 038f 0000 0000 +00f0 0000 1234 0000 0000 0000 0 1 0000 cb 33 -1 -038f ba -1 -1 -; (GB) SWAP +; (GB) SWAP H cb34 -1200 77f6 0206 fb38 0000 0000 +00f0 0000 0000 1234 0000 0000 0 1 0000 cb 34 -1 -fb38 07 -1 -1 -; (GB) SWAP +; (GB) SWAP L cb35 -3c00 fd68 ea91 7861 0000 0000 +00f0 0000 0000 1234 0000 0000 0 1 0000 cb 35 -1 -7861 72 -1 -1 -; (GB) SWAP +; (GB) SWAP (HL) cb36 -8a00 1185 1dde 6d38 0000 0000 +00f0 0000 0000 1234 0000 0000 0 1 0000 cb 36 -1 -6d38 f1 -1 +1234 fe -1 -1 -; (GB) SWAP +; (GB) SWAP A cb37 -4300 d7bc 9133 6e56 0000 0000 +12f0 0000 0000 0000 0000 0000 0 1 0000 cb 37 -1 -6e56 f8 -1 -1 cb38