diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-09-19 19:16:53 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-09-22 20:17:38 +0200 |
| commit | e569d3bc4a8d011eb7d93034fc386f9174b397b0 (patch) | |
| tree | deb4f26a6cf929f8439932018df10589ebda9c52 | |
| parent | 05cdbccc3882ecd5778371a95801951519eed5d7 (diff) | |
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).
| -rw-r--r-- | Source/DSPSpy/tests/dsp_base.inc | 14 |
1 files 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 |
