aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-06-24 20:07:08 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-06-24 20:07:08 +0800
commit7a4c1e317c80b36f98821147a3dd2a1ad0d3d4bb (patch)
treefacd84391363b022decbbd9e6e477b360fafa5f7
parent447e13ea2f70217659f83ef54ac35072d3aaf145 (diff)
downloadpsn00bsdk-7a4c1e317c80b36f98821147a3dd2a1ad0d3d4bb.tar.gz
Fixed bug in DrawPrim() where it sends 1 extra junk word
-rw-r--r--README.md2
-rw-r--r--libpsn00b/psxgpu/drawprim.s1
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 14603d3..d1f7c3c 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ performance reasons.
## Notable features
-As of libpsn00b run-time library v0.10
+As of libpsn00b run-time library v0.10b
* Extensive GPU support with polygon primitives, high-speed DMA VRAM
transfers and DMA ordering table processing. All video modes for both NTSC
diff --git a/libpsn00b/psxgpu/drawprim.s b/libpsn00b/psxgpu/drawprim.s
index a216720..de5afbd 100644
--- a/libpsn00b/psxgpu/drawprim.s
+++ b/libpsn00b/psxgpu/drawprim.s
@@ -23,6 +23,7 @@ DrawPrim:
move $a0, $s0
lbu $a1, 3($a0) # Get length of primitive packet
addiu $a0, 4
+ addiu $a1, -1
.Ltransfer_loop:
lw $v0, 0($a0)