From 4dbf47f129a55428b90df2805228fbd481e1d117 Mon Sep 17 00:00:00 2001 From: spicyjpeg Date: Thu, 27 Oct 2022 12:04:11 +0200 Subject: Fix SPU_TRANSFER_BY_IO mode, add IRQ/DMA enums --- libpsn00b/psxpress/vlc.s | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libpsn00b/psxpress/vlc.s') 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 -- cgit v1.2.3