From 912fdcde305e87d4a432d08ebfcf6159cb4acbdc Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 1 Jun 2026 23:27:40 -0400 Subject: [PATCH] https://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html --- code/gte_hello/hello_gte.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/gte_hello/hello_gte.c b/code/gte_hello/hello_gte.c index aa3487e..9d06f76 100644 --- a/code/gte_hello/hello_gte.c +++ b/code/gte_hello/hello_gte.c @@ -226,7 +226,7 @@ void update(PrimitiveArena* pa, U4* ordering_buf) // static_mem.cube.rot.x += 6; // static_mem.cube.rot.y += 8; // static_mem.cube.rot.z += 12; - static_mem.cube.rot.y += 0; + static_mem.cube.rot.y += 20; } // Draw Floor { @@ -241,12 +241,12 @@ void update(PrimitiveArena* pa, U4* ordering_buf) tri->color = rgb8(255, 255, 255); V3_S2* face = & static_mem.floor.faces[face_id]; - V3_S2* p0 = & static_mem.floor.verts[face->x]; + register V3_S2* p0 asm("$12") = & static_mem.floor.verts[face->x]; V3_S2* p1 = & static_mem.floor.verts[face->y]; V3_S2* p2 = & static_mem.floor.verts[face->z]; // gte_ldv0(p0); - gte_load_v0(p0); + gte_load_v0(p0); gte_ldv1(p1); gte_ldv2(p2);