More testing with stack stuff

This commit is contained in:
Pokechu22 2023-01-23 19:06:12 -08:00
commit 164e0fe54e

View file

@ -61,10 +61,6 @@ wait_cpu_read_1a:
NOP NOP
NOP NOP
NOP
NOP
NOP
NOP
;LRIS $AX0.H, #2 ;LRIS $AX0.H, #2
;CALL send_back ;CALL send_back
@ -94,19 +90,23 @@ main_loop_last_ins:
external_irq: external_irq:
INC $ACC0 INC $ACC0
MRR $AR1, $ST0
LRIS $AX0.H, #4 LRIS $AX0.H, #4
CALL send_back CALL send_back
MRR $ST0, $AR1
NOP ; this is required (probably something pipeline related)
RTI RTI
; Expected output: ; Expected output:
; ar0 st1 sr st3 ac0.l ; st0 ar0 st1 sr st3 ac0.l
; 1f24 0966 2024 b88 0 ; 0510 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 ; 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
; 3824 3864 2860 8 2 ; 016X 3824 3864 2860 8 2
; 3924 3864 2860 7 1 ; 016X 3924 3864 2860 7 1
; 3a24 3a64 2a60 6 1 ; 016X 3a24 3a64 2a60 6 1
; 3b24 3a64 2a60 5 1 ; 016X 3b24 3a64 2a60 5 1
; 3c24 3c64 2c60 4 1 ; 016X 3c24 3c64 2c60 4 1
; 3d24 3c64 2c60 3 1 ; 016X 3d24 3c64 2c60 3 1
; 3e24 3e64 2e60 2 1 ; 016X 3e24 3e64 2e60 2 1
; 3f24 3e64 2e60 1 1 ; 016X 3f24 3e64 2e60 1 1
; X is 9 or 7 (consistently one of those). Probably around the second SI to @DMBH?