aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/clearotagr.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/psxgpu/clearotagr.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/psxgpu/clearotagr.s')
-rw-r--r--libpsn00b/psxgpu/clearotagr.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpsn00b/psxgpu/clearotagr.s b/libpsn00b/psxgpu/clearotagr.s
index 3e888f1..562cad4 100644
--- a/libpsn00b/psxgpu/clearotagr.s
+++ b/libpsn00b/psxgpu/clearotagr.s
@@ -8,14 +8,14 @@
.global ClearOTagR
.type ClearOTagR, @function
ClearOTagR:
- lui $a2, 0x1f80
+ lui $a2, IOBASE
addi $v0, $a1, -1
sll $v0, 2
addu $a0, $v0
- sw $a0, D6_MADR($a2)
+ sw $a0, DMA6_MADR($a2)
andi $a1, 0xffff
- sw $a1, D6_BCR($a2)
+ sw $a1, DMA6_BCR($a2)
lui $v0, 0x1100
addiu $v0, 2
jr $ra
- sw $v0, D6_CHCR($a2)
+ sw $v0, DMA6_CHCR($a2)