aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxgte
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2021-01-05 10:58:04 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2021-01-05 10:58:04 +0800
commit974b17fad06cef4b304645b8a9dd92ac91ebb749 (patch)
tree1db281d9cac9bb4e80ae17dc731f1a3241c787f6 /libpsn00b/psxgte
parentf048f87b445942f961d225348e2af1113e544d23 (diff)
downloadpsn00bsdk-974b17fad06cef4b304645b8a9dd92ac91ebb749.tar.gz
Added updated library reference, added struct names in psxgpu.h, defined GTE squareroot functions and added C++ demo example.
Diffstat (limited to 'libpsn00b/psxgte')
-rw-r--r--libpsn00b/psxgte/vectornormals.s5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpsn00b/psxgte/vectornormals.s b/libpsn00b/psxgte/vectornormals.s
index 49d949d..939c4d1 100644
--- a/libpsn00b/psxgte/vectornormals.s
+++ b/libpsn00b/psxgte/vectornormals.s
@@ -56,12 +56,11 @@ VectorNormalS:
la $t5, _norm_table
addu $t5, $t4
lh $t5, 0($t5)
- nop
- mtc2 $t5, C2_IR0
mtc2 $t0, C2_IR1
mtc2 $t1, C2_IR2
mtc2 $t2, C2_IR3
+ mtc2 $t5, C2_IR0
nGPF(0)
@@ -81,6 +80,8 @@ VectorNormalS:
.section .data
+.global _norm_table
+.type _norm_table, @object
_norm_table:
.hword 0x1000, 0x0FE0, 0x0FC1, 0x0FA3, 0x0F85, 0x0F68, 0x0F4C, 0x0F30
.hword 0x0F15, 0x0EFB, 0x0EE1, 0x0EC7, 0x0EAE, 0x0E96, 0x0E7E, 0x0E66