From e569d3bc4a8d011eb7d93034fc386f9174b397b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 19 Sep 2017 19:16:53 +0200 Subject: [PATCH] DSPSpy/Base: Handle ACCOV exceptions This allows dspspy to show that an ACCOV happened, and to resume accelerator reads after an ACCOV (by refreshing the YN2 register). --- Source/DSPSpy/tests/dsp_base.inc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Source/DSPSpy/tests/dsp_base.inc b/Source/DSPSpy/tests/dsp_base.inc index 55cff4af8e..7fac883311 100644 --- a/Source/DSPSpy/tests/dsp_base.inc +++ b/Source/DSPSpy/tests/dsp_base.inc @@ -138,8 +138,18 @@ irq4: lri $ac0.m, #0x0004 jmp irq irq5: - lri $ac0.m, #0x0005 - jmp irq + lrs $ac0.m, @DMBH + andcf $ac0.m, #0x8000 + jlz irq5 + si @DMBH, #0x8005 + si @DMBL, #0x0000 + si @DIRQ, #0x0001 + lri $ac0.m, #0xbbbb + sr @0xffda, $ac0.m ; pred scale + sr @0xffdb, $ac0.m ; yn1 + lr $ix2, @ARAM + sr @0xffdc, $ac0.m ; yn2 + rti irq6: lri $ac0.m, #0x0006 jmp irq