aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxpress
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2022-10-27 12:04:11 +0200
committerspicyjpeg <thatspicyjpeg@gmail.com>2022-10-27 12:04:11 +0200
commit4dbf47f129a55428b90df2805228fbd481e1d117 (patch)
tree5f85468522e96e00157a290ad3b809d1c3633b1d /libpsn00b/psxpress
parent5f25c0bf306d316c87fca9d3fe160d6661be230d (diff)
downloadpsn00bsdk-4dbf47f129a55428b90df2805228fbd481e1d117.tar.gz
Fix SPU_TRANSFER_BY_IO mode, add IRQ/DMA enums
Diffstat (limited to 'libpsn00b/psxpress')
-rw-r--r--libpsn00b/psxpress/vlc.s9
1 files changed, 4 insertions, 5 deletions
diff --git a/libpsn00b/psxpress/vlc.s b/libpsn00b/psxpress/vlc.s
index 75e33d3..f3a1c67 100644
--- a/libpsn00b/psxpress/vlc.s
+++ b/libpsn00b/psxpress/vlc.s
@@ -145,17 +145,16 @@ _vlc_skip_context_load:
li $v0, -1
.Lprocess_ac_coefficient: # if (coeff_index)
- # Start counting the number of leading zeroes/ones using the GTE. This
- # takes 2 more cycles.
- mtc2 $t0, $30
-
- # Check whether the prefix code is one of the shorter, more common ones.
+ # Check whether the prefix code is one of the shorter, more common ones,
+ # and start counting the number of leading zeroes/ones using the GTE (which
+ # takes 2 more cycles).
srl $v0, $t0, 30
li $v1, 3
beq $v0, $v1, .Lac_prefix_11
li $v1, 2
beq $v0, $v1, .Lac_prefix_10
li $v1, 1
+ mtc2 $t0, $30
beq $v0, $v1, .Lac_prefix_01
nop