From 87dc6685222bcff141698c2a60105aa77d9ec446 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sat, 14 Aug 2021 16:04:13 -0700 Subject: [PATCH] DSPSpy: Fix hang when using the free DSP rom --- Source/DSPSpy/tests/dsp_base.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/DSPSpy/tests/dsp_base.inc b/Source/DSPSpy/tests/dsp_base.inc index 46441fd674..95816250a8 100644 --- a/Source/DSPSpy/tests/dsp_base.inc +++ b/Source/DSPSpy/tests/dsp_base.inc @@ -118,7 +118,10 @@ do_dma: sr @DSPA, $ax0.l sr @DSCR, $ax1.l sr @DSBL, $ax0.h ; This kicks off the DMA. - call 0x863d ; Wait for DMA to complete by watching a bit in DSCR. +wait_dma_finish: + lr $ac1.m, @DSCR + andcf $ac1.m, #0x4 + jlz wait_dma_finish ret ; IRQ handlers. Just send back exception# and die