DSPSpy: Require user to specify a test_main label

This makes the point where execution starts more obvious compared to a start_of_test label at the end of the include, and allows putting other functions at the start of the file.  This change also modifies the existing tests to build with this change.
This commit is contained in:
Pokechu22
2021-08-15 15:26:03 -07:00
parent 5f7c852d22
commit 51c26d82a5
16 changed files with 26 additions and 17 deletions

View File

@ -6,13 +6,14 @@ include "dsp_base.inc"
; We can call send_back at any time to send data back to the PowerPC.
lri $AC0.M, #0x1000
call send_back
test_main:
lri $AC0.M, #0x1000
call send_back
set40
lri $AC0.M, #0x1000
set16
call send_back
set40
lri $AC0.M, #0x1000
set16
call send_back
; We're done, DO NOT DELETE THIS LINE
jmp end_of_test
jmp end_of_test