mirror of
https://github.com/zeldaret/tww.git
synced 2026-06-14 22:09:06 -04:00
J3DDrawBuffer yeah
This commit is contained in:
@@ -17,8 +17,29 @@ void J3DGQRSetup7(unsigned long, unsigned long, unsigned long, unsigned long) {
|
||||
}
|
||||
|
||||
/* 802DA0E8-802DA120 .text J3DCalcZValue__FPA4_f3Vec */
|
||||
void J3DCalcZValue(float(*)[4], Vec) {
|
||||
/* Nonmatching */
|
||||
|
||||
// matches debug
|
||||
f32 J3DCalcZValue(register MtxP m, register Vec v) {
|
||||
register f32 temp_f4;
|
||||
register f32 out;
|
||||
register f32 temp_f0;
|
||||
register f32 temp_f2;
|
||||
register f32 temp_f1 = 1.0f;
|
||||
|
||||
// clang-format off
|
||||
asm {
|
||||
psq_l temp_f0, 0(v), 0, 0 /* qr0 */
|
||||
lfs temp_f2, 8(v)
|
||||
psq_l temp_f4, 32(m), 0, 0 /* qr0 */
|
||||
psq_l out, 40(m), 0, 0 /* qr0 */
|
||||
ps_merge00 temp_f2, temp_f2, temp_f1
|
||||
ps_mul temp_f4, temp_f0, temp_f4
|
||||
ps_madd out, temp_f2, out, temp_f4
|
||||
ps_sum0 out, out, out, out
|
||||
}
|
||||
// clang-format on
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
/* 802DA120-802DA2E0 .text J3DCalcBBoardMtx__FPA4_f */
|
||||
|
||||
Reference in New Issue
Block a user