diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-06-23 07:42:16 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-06-23 07:42:16 +0800 |
| commit | 7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc (patch) | |
| tree | e98c627e1da5c764563774b89b0c06d7ac5ad0a4 /libpsn00b/psxgpu/drawotag.s | |
| parent | ae9e545c3ed33d39ce21ae13ceb8337fa34901b8 (diff) | |
| download | psn00bsdk-7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc.tar.gz | |
LibPSn00b officially v0.10b, added psxsio library, better DrawSync() and VSync(), better reference manual.
Diffstat (limited to 'libpsn00b/psxgpu/drawotag.s')
| -rw-r--r-- | libpsn00b/psxgpu/drawotag.s | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libpsn00b/psxgpu/drawotag.s b/libpsn00b/psxgpu/drawotag.s index 8a5ff0c..ba771fc 100644 --- a/libpsn00b/psxgpu/drawotag.s +++ b/libpsn00b/psxgpu/drawotag.s @@ -13,20 +13,20 @@ DrawOTag: lui $a3, 0x1f80 # I/O segment base -.gpu_wait: # Wait for GPU to be ready for commands & DMA + lui $v0, 0x0400 # Set DMA direction to CPUtoGPU + ori $v0, 0x2 + sw $v0, GP1($a3) + +.Lgpu_wait: # Wait for GPU to be ready for commands & DMA jal ReadGPUstat nop srl $v0, 26 andi $v0, 1 - beqz $v0, .gpu_wait + beqz $v0, .Lgpu_wait nop - lui $v0, 0x0400 # Set DMA direction to CPUtoGPU - ori $v0, 0x2 - sw $v0, GP1($a3) - sw $a0, D2_MADR($a3) # Set DMA base address to specified OT - sw $0, D2_BCR($a3) + sw $0 , D2_BCR($a3) lui $v0, 0x0100 # Begin OT transfer! ori $v0, 0x0401 |
