aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu/drawsync.s
diff options
context:
space:
mode:
authorJohn "Lameguy" Wilbert Villamor <lameguy64@gmail.com>2022-09-26 16:49:56 +0800
committerGitHub <noreply@github.com>2022-09-26 16:49:56 +0800
commitc4a2533d21dfd05cde841ea48c67b05e0e6a853f (patch)
treec7ef61653b157b69fb0956709366996ddbc4ecfa /libpsn00b/psxgpu/drawsync.s
parenta8b404b3400c3ebd8e0b923dcaefcc49ea563e36 (diff)
parent86f0064afb8200e60dd80827535cac30d0eab028 (diff)
downloadpsn00bsdk-c4a2533d21dfd05cde841ea48c67b05e0e6a853f.tar.gz
Merge pull request #55 from spicyjpeg/psxmdec
Full MDEC support, C library refactors, cleanups and bugfixes (v0.20)
Diffstat (limited to 'libpsn00b/psxgpu/drawsync.s')
-rw-r--r--libpsn00b/psxgpu/drawsync.s67
1 files changed, 0 insertions, 67 deletions
diff --git a/libpsn00b/psxgpu/drawsync.s b/libpsn00b/psxgpu/drawsync.s
deleted file mode 100644
index b671b03..0000000
--- a/libpsn00b/psxgpu/drawsync.s
+++ /dev/null
@@ -1,67 +0,0 @@
-.set noreorder
-
-.include "hwregs_a.h"
-
-.section .text
-
-
-.global DrawSync
-.type DrawSync, @function
-DrawSync:
-
- bnez $a0, .Lgetwords
- lui $a0, IOBASE
-
- addiu $sp, -4
- sw $ra, 0($sp)
-
- jal ReadGPUstat # Check if DMA enabled
- nop
- srl $v0, 29
- andi $v0, 0x3
-
- beqz $v0, .Lsimple_wait
- nop
-
-.Ldma_wait:
- lw $v0, DMA2_CHCR($a0)
- nop
- srl $v0, 24
- andi $v0, 0x1
- bnez $v0, .Ldma_wait
- nop
-
-.Lgpu_wait:
- jal ReadGPUstat
- nop
- srl $v0, 26
- andi $v0, 0x5
- bne $v0, 5, .Lgpu_wait
- nop
-
- b .Lexit
- nop
-
-.Lsimple_wait: # Wait for GPU to be ready for next DMA
- jal ReadGPUstat
- nop
- srl $v0, 28
- andi $v0, 0x1
- beqz $v0, .Lsimple_wait
- nop
-
-.Lexit:
-
- lw $ra, 0($sp)
- addiu $sp, 4
- jr $ra
- nop
-
-.Lgetwords:
-
- lw $v0, DMA2_BCR($a0)
- nop
-
- jr $ra
- srl $v0, 16
-