diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-19 15:09:07 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2022-10-19 15:09:07 +0200 |
| commit | 982df5fe197c4db2be4bffe59a05c837b7508365 (patch) | |
| tree | e5ddb393fca8280920724f3aa5ecec3261058fa4 /libpsn00b/psxgte/pushpopmatrix.s | |
| parent | 783014e53254fe17102a34c30120eeabf5227a47 (diff) | |
| download | psn00bsdk-982df5fe197c4db2be4bffe59a05c837b7508365.tar.gz | |
Initial psxgte cleanup
Diffstat (limited to 'libpsn00b/psxgte/pushpopmatrix.s')
| -rw-r--r-- | libpsn00b/psxgte/pushpopmatrix.s | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/libpsn00b/psxgte/pushpopmatrix.s b/libpsn00b/psxgte/pushpopmatrix.s deleted file mode 100644 index ca6b992..0000000 --- a/libpsn00b/psxgte/pushpopmatrix.s +++ /dev/null @@ -1,68 +0,0 @@ -.set noreorder - -.include "gtereg.inc" -.include "inline_s.inc" - -.section .text - - -.global PushMatrix -.type PushMatrix, @function -PushMatrix: - la $a0, _matrix_stack - cfc2 $v0, C2_R11R12 - cfc2 $v1, C2_R13R21 - sw $v0, 0($a0) - cfc2 $v0, C2_R22R23 - sw $v1, 4($a0) - sw $v0, 8($a0) - cfc2 $v0, C2_R31R32 - cfc2 $v1, C2_R33 - sw $v0, 12($a0) - sw $v1, 16($a0) - cfc2 $v0, C2_TRX - cfc2 $v1, C2_TRY - sw $v0, 20($a0) - cfc2 $v0, C2_TRZ - sw $v1, 24($a0) - jr $ra - sw $v0, 28($a0) - -.global PopMatrix -.type PopMatrix, @function -PopMatrix: - la $a0, _matrix_stack - lw $v0, 0($a0) - lw $v1, 4($a0) - ctc2 $v0, C2_R11R12 - ctc2 $v1, C2_R13R21 - lw $v0, 8($a0) - lw $v1, 12($a0) - ctc2 $v0, C2_R22R23 - lw $v0, 16($a0) - ctc2 $v1, C2_R31R32 - ctc2 $v0, C2_R33 - lw $v0, 20($a0) - lw $v1, 24($a0) - ctc2 $v0, C2_TRX - lw $v0, 28($a0) - ctc2 $v1, C2_TRY - ctc2 $v0, C2_TRZ - jr $ra - nop - - -.section .data - - -.type matrix_stack, @object -_matrix_stack: - .word 0 - .word 0 - .word 0 - .word 0 - .word 0 - .word 0 - .word 0 - .word 0 - |
