summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-05-02 20:19:37 +0000
committernakeee <nakeee@gmail.com>2009-05-02 20:19:37 +0000
commite7c7142c9d8d91a5bcfe0c868bfd078bf0a2838f (patch)
treedd7786fe5461d4de12cc8231cd05b5ad0af4b60d
parent4ae8ad7cf2f049a1ca5810b04e0b5de342eb2bd5 (diff)
added test to make sure SR doesn't change from 2's to 1's
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3137 8ced0084-cf51-0410-be5f-012b33b47a6e
-rw-r--r--Source/DSPSpy/tests/neg_test.ds110
1 files changed, 110 insertions, 0 deletions
diff --git a/Source/DSPSpy/tests/neg_test.ds b/Source/DSPSpy/tests/neg_test.ds
new file mode 100644
index 0000000000..01113c96cc
--- /dev/null
+++ b/Source/DSPSpy/tests/neg_test.ds
@@ -0,0 +1,110 @@
+; this test try to test for 1's mode
+incdir "tests"
+include "dsp_base.inc"
+
+lri $ACC0, #0x0001
+lri $SR, #0x0001
+
+neg $ACC0
+call send_back ; 1
+
+
+lri $ACC0, #0x0001
+lri $SR, #0x0002
+
+neg $ACC0
+call send_back ; 2
+
+lri $ACC0, #0x0001
+lri $SR, #0x0004
+
+neg $ACC0
+call send_back ; 3
+
+lri $ACC0, #0x0001
+lri $SR, #0x0008
+
+neg $ACC0
+call send_back ; 4
+
+lri $ACC0, #0x0001
+lri $SR, #0x0010
+
+neg $ACC0
+call send_back ; 5
+
+lri $ACC0, #0x0001
+lri $SR, #0x0020
+
+neg $ACC0
+call send_back ; 6
+
+lri $ACC0, #0x0001
+lri $SR, #0x0040
+
+neg $ACC0
+call send_back ; 7
+
+lri $ACC0, #0x0001
+lri $SR, #0x0080
+
+neg $ACC0
+call send_back ; 8
+
+lri $ACC0, #0x0001
+lri $SR, #0x0100
+
+neg $ACC0
+call send_back ; 9
+
+lri $ACC0, #0x0001
+lri $SR, #0x0200
+
+neg $ACC0
+call send_back ; 10
+
+lri $ACC0, #0x0001
+lri $SR, #0x0400
+
+neg $ACC0
+call send_back ; 11
+
+lri $ACC0, #0x0001
+lri $SR, #0x0800
+
+neg $ACC0
+call send_back ; 12
+
+lri $ACC0, #0x0001
+lri $SR, #0x1000
+
+neg $ACC0
+call send_back ; 13
+
+lri $ACC0, #0x0001
+lri $SR, #0x2000
+
+neg $ACC0
+call send_back ; 14
+
+lri $ACC0, #0x0001
+lri $SR, #0x4000
+
+neg $ACC0
+call send_back ; 15
+
+lri $ACC0, #0x0001
+lri $SR, #0x8000
+
+neg $ACC0
+call send_back ; 16
+
+set16
+lri $ACC0, #0x0001
+lri $SR, #0x2230
+
+neg $ACC0
+set40
+call send_back ; 17
+
+