From 7a4c1e317c80b36f98821147a3dd2a1ad0d3d4bb Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Mon, 24 Jun 2019 20:07:08 +0800 Subject: Fixed bug in DrawPrim() where it sends 1 extra junk word --- README.md | 2 +- libpsn00b/psxgpu/drawprim.s | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3