mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
DSPSpy: Add st3 BLOOP{,I} tests.
This commit is contained in:
parent
556d18f865
commit
12142c4fa8
25
Source/DSPSpy/tests/st3_test.ds
Normal file
25
Source/DSPSpy/tests/st3_test.ds
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
; This test checks when $st3 gets decremented during BLOOP{,I} iterations.
|
||||||
|
; Expected $st3 values are: 2, 1, 0x0b88, 2, 1, 0x0b88.
|
||||||
|
|
||||||
|
incdir "tests"
|
||||||
|
include "dsp_base.inc"
|
||||||
|
|
||||||
|
test_main:
|
||||||
|
LRI $ac0.l, #2
|
||||||
|
BLOOP $ac0.l, last_of_bloop
|
||||||
|
CALL send_back
|
||||||
|
NOP
|
||||||
|
NOP
|
||||||
|
last_of_bloop:
|
||||||
|
NOP
|
||||||
|
CALL send_back
|
||||||
|
|
||||||
|
BLOOPI #2, last_of_bloopi
|
||||||
|
CALL send_back
|
||||||
|
NOP
|
||||||
|
NOP
|
||||||
|
last_of_bloopi:
|
||||||
|
NOP
|
||||||
|
CALL send_back
|
||||||
|
|
||||||
|
JMP end_of_test
|
Loading…
x
Reference in New Issue
Block a user