From 56d55f2d225a8bfbce7c30848b0ec3c09e843178 Mon Sep 17 00:00:00 2001 From: luigi2us Date: Wed, 15 Jul 2009 10:09:48 +0000 Subject: [PATCH] DSPSpy: added a test for opcode 0x3D80. Ran this test on my Wii, with AC0.M = 0x0004 and AC1.M = 0x1234 Result: AC1.M = 0x2340 This opcode is NOT andc'ls. It left-shifts ACC1 by value in ACC0. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3796 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/DSPSpy/tests/andc_ls_test.ds | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Source/DSPSpy/tests/andc_ls_test.ds diff --git a/Source/DSPSpy/tests/andc_ls_test.ds b/Source/DSPSpy/tests/andc_ls_test.ds new file mode 100644 index 0000000000..aa66dee667 --- /dev/null +++ b/Source/DSPSpy/tests/andc_ls_test.ds @@ -0,0 +1,23 @@ +incdir "tests" +include "dsp_base.inc" + +; Test for andc'ls +; +; 3d80 andc'ls $AC1.M : $AX0.L, $AC0.M + + + clr $ACC0 + clr $ACC1 + lri $AX0.L, #0x0000 + lri $AR0, #0x0FF0 + lri $AR3, #0x0FF0 + + lri $AC0.M, #0x0004 + lri $AC1.M, #0x1234 + andc'ls $AC1.M : $AX0.L, $AC0.M + + call send_back + + +; We're done, DO NOT DELETE THIS LINE + jmp end_of_test