aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxcd/cdgetsector.s
diff options
context:
space:
mode:
authorJohn "Lameguy" Wilbert Villamor <lameguy64@gmail.com>2022-03-25 09:22:20 +0800
committerGitHub <noreply@github.com>2022-03-25 09:22:20 +0800
commit975e614b3c840e2f717adac1d1cb9cee4e5e561b (patch)
tree6584ce5b0dbe27a466c95c81fac61b0d90f627bd /libpsn00b/psxcd/cdgetsector.s
parent05d44488bd5587786f4bd0286fc0f555c79aa46a (diff)
parent45168ae43e29aa5930ee5a206475ae836078915f (diff)
downloadpsn00bsdk-975e614b3c840e2f717adac1d1cb9cee4e5e561b.tar.gz
Merge pull request #46 from spicyjpeg/psxmdec
Critical ldscript fixes, initial MDEC support and CI updates
Diffstat (limited to 'libpsn00b/psxcd/cdgetsector.s')
-rw-r--r--libpsn00b/psxcd/cdgetsector.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpsn00b/psxcd/cdgetsector.s b/libpsn00b/psxcd/cdgetsector.s
index dbe95cb..9f38e7a 100644
--- a/libpsn00b/psxcd/cdgetsector.s
+++ b/libpsn00b/psxcd/cdgetsector.s
@@ -21,16 +21,16 @@ CdGetSector:
# srl $a1, 2 # (the official implementation expects $a1/size
# to be in 32-bit words rather than bytes)
or $v0, $a1
- sw $a0, D3_MADR($a2) # Set DMA base address and transfer length
- sw $v0, D3_BCR($a2)
+ sw $a0, DMA3_MADR($a2) # Set DMA base address and transfer length
+ sw $v0, DMA3_BCR($a2)
lui $v0, 0x1100 # Start DMA transfer
- sw $v0, D3_CHCR($a2)
+ sw $v0, DMA3_CHCR($a2)
nop
nop
.Ldma_wait: # Ensure DMA transfer has completed
- lw $v0, D3_CHCR($a2)
+ lw $v0, DMA3_CHCR($a2)
nop
srl $v0, 24
andi $v0, 0x1