From 164e0fe54ed93c99d14ca3165fe6beb1157347f4 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Mon, 23 Jan 2023 19:06:12 -0800 Subject: [PATCH] More testing with stack stuff --- .../tests/external_interrupt_status_bits.ds | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Source/DSPSpy/tests/external_interrupt_status_bits.ds b/Source/DSPSpy/tests/external_interrupt_status_bits.ds index 73260bfff1..8d5650c89f 100644 --- a/Source/DSPSpy/tests/external_interrupt_status_bits.ds +++ b/Source/DSPSpy/tests/external_interrupt_status_bits.ds @@ -61,10 +61,6 @@ wait_cpu_read_1a: NOP NOP - NOP - NOP - NOP - NOP ;LRIS $AX0.H, #2 ;CALL send_back @@ -94,19 +90,23 @@ main_loop_last_ins: external_irq: INC $ACC0 + MRR $AR1, $ST0 LRIS $AX0.H, #4 CALL send_back + MRR $ST0, $AR1 + NOP ; this is required (probably something pipeline related) RTI ; Expected output: -; ar0 st1 sr st3 ac0.l -; 1f24 0966 2024 b88 0 -; 3824 3824 2820 8 1 - this one is weird (maybe you can't unrequest an interrupt, and it's happening twice); it doesn't happen in dolphin yet -; 3824 3864 2860 8 2 -; 3924 3864 2860 7 1 -; 3a24 3a64 2a60 6 1 -; 3b24 3a64 2a60 5 1 -; 3c24 3c64 2c60 4 1 -; 3d24 3c64 2c60 3 1 -; 3e24 3e64 2e60 2 1 -; 3f24 3e64 2e60 1 1 +; st0 ar0 st1 sr st3 ac0.l +; 0510 1f24 0966 2024 b88 0 +; 0155 3824 3824 2820 8 1 - this one is weird (maybe you can't unrequest an interrupt, and it's happening twice); it doesn't happen in dolphin yet +; 016X 3824 3864 2860 8 2 +; 016X 3924 3864 2860 7 1 +; 016X 3a24 3a64 2a60 6 1 +; 016X 3b24 3a64 2a60 5 1 +; 016X 3c24 3c64 2c60 4 1 +; 016X 3d24 3c64 2c60 3 1 +; 016X 3e24 3e64 2e60 2 1 +; 016X 3f24 3e64 2e60 1 1 +; X is 9 or 7 (consistently one of those). Probably around the second SI to @DMBH?