aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgpu
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-11-22 09:11:12 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-11-22 09:11:12 +0800
commitea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0 (patch)
tree43e2a53f4e5f7f55b075cfc9d6dc7a652a7b0837 /libpsn00b/psxgpu
parentd80d92e13330d527ddb94420b19f9e21bf0e74eb (diff)
downloadpsn00bsdk-ea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0.tar.gz
Added long awaited CD-ROM library and loads of fixes, see changelog for details
Diffstat (limited to 'libpsn00b/psxgpu')
-rw-r--r--libpsn00b/psxgpu/drawsync.s4
-rw-r--r--libpsn00b/psxgpu/readme.txt8
-rw-r--r--libpsn00b/psxgpu/resetgraph.s2
3 files changed, 6 insertions, 8 deletions
diff --git a/libpsn00b/psxgpu/drawsync.s b/libpsn00b/psxgpu/drawsync.s
index 66d37e2..2e29381 100644
--- a/libpsn00b/psxgpu/drawsync.s
+++ b/libpsn00b/psxgpu/drawsync.s
@@ -24,7 +24,7 @@ DrawSync:
nop
.Ldma_wait:
- lw $v0, D2_CHCR
+ lw $v0, D2_CHCR($a0)
nop
srl $v0, 24
andi $v0, 0x1
@@ -64,4 +64,4 @@ DrawSync:
jr $ra
srl $v0, 16
- \ No newline at end of file
+
diff --git a/libpsn00b/psxgpu/readme.txt b/libpsn00b/psxgpu/readme.txt
index 8fe439b..b626e1d 100644
--- a/libpsn00b/psxgpu/readme.txt
+++ b/libpsn00b/psxgpu/readme.txt
@@ -5,9 +5,9 @@ Licensed under Mozilla Public License
Open source implementation of the GPU library written mostly in MIPS
assembly. Supports DMA transfers for ordering table draw and transferring
-image data to VRAM. The syntax is intentionally made to closely resemble
-Sony's syntax for familiarity and to make porting homebrew made using the
-official SDK to PSn00bSDK a little easier.
+image data to and from VRAM. The syntax is intentionally made to closely
+resemble Sony's syntax for familiarity and to make porting homebrew made
+using the official SDK to PSn00bSDK a little easier.
Library developer(s):
@@ -25,5 +25,3 @@ Todo list:
* ClearOTag() function (non reverse version of ClearOTagR()) yet to be
implemented (but should be trivial).
-
- * StoreImage() equivalent yet to be implemented.
diff --git a/libpsn00b/psxgpu/resetgraph.s b/libpsn00b/psxgpu/resetgraph.s
index 93ce185..b956873 100644
--- a/libpsn00b/psxgpu/resetgraph.s
+++ b/libpsn00b/psxgpu/resetgraph.s
@@ -4,7 +4,7 @@
.section .text
-.set ISR_STACK_SIZE, 1024
+.set ISR_STACK_SIZE, 2048
.global ResetGraph # Resets the GPU and installs a
.type ResetGraph, @function # VSync event handler