From c34a738b4c7d12d8d72a343ee3c1c46073dd7e38 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 23 May 2022 11:33:59 -0700 Subject: [PATCH] DSPSpy: Add missing jumps to end_of_test Without this, execution continues beyond the end of the function, into the great unknown (probably eventually falling into either code left from a previous test, or the start of the DSP ROM). end_of_test is just an infinite loop to stop executing until the DSP is reset. --- Source/DSPSpy/tests/arith_test.ds | 3 +++ Source/DSPSpy/tests/ld_test.ds | 4 ++-- Source/DSPSpy/tests/neg_test.ds | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/DSPSpy/tests/arith_test.ds b/Source/DSPSpy/tests/arith_test.ds index 96884c6bbc..f93f428b06 100644 --- a/Source/DSPSpy/tests/arith_test.ds +++ b/Source/DSPSpy/tests/arith_test.ds @@ -138,3 +138,6 @@ sub $acc1, $acc0 set16 call send_back ; 20 + +; We're done, DO NOT DELETE THIS LINE +jmp end_of_test diff --git a/Source/DSPSpy/tests/ld_test.ds b/Source/DSPSpy/tests/ld_test.ds index 045680c877..4857b61d3e 100644 --- a/Source/DSPSpy/tests/ld_test.ds +++ b/Source/DSPSpy/tests/ld_test.ds @@ -244,5 +244,5 @@ lri $AX1.L, #0x13 nx'ldnm : $AX0.L, $AX1.L, @$AR0 call send_back ; 20 - - +; We're done, DO NOT DELETE THIS LINE +jmp end_of_test diff --git a/Source/DSPSpy/tests/neg_test.ds b/Source/DSPSpy/tests/neg_test.ds index 57c1610511..63f535bb6a 100644 --- a/Source/DSPSpy/tests/neg_test.ds +++ b/Source/DSPSpy/tests/neg_test.ds @@ -114,4 +114,5 @@ neg $ACC0 set40 call send_back ; 18 - +; We're done, DO NOT DELETE THIS LINE +jmp end_of_test