mirror of
https://github.com/zeldaret/oot
synced 2026-07-08 22:35:00 -04:00
Decompile speed_meter.c and add VIEWPORT_INIT macro (#127)
* Decompile speed_meter.c and add VIEWPORT_INIT macro - speed_meter.c: OK - Add VIEWPORT_INIT(viewport, by, rx, ty, lx) macro * get rid of some magic numbers * use early return instead of a big if block in SpeedMeter_DrawTimeEntries
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
.section .bss
|
||||
|
||||
glabel D_801664D0
|
||||
glabel gSpeedMeter
|
||||
.space 0x20
|
||||
|
||||
glabel D_801664F0
|
||||
|
||||
+1
-1
@@ -79,5 +79,5 @@ glabel D_8016A574
|
||||
glabel D_8016A580
|
||||
.space 0x8
|
||||
|
||||
glabel D_8016A588
|
||||
glabel gSpeedMeterTimeEntryPtr
|
||||
.space 0x8
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
.include "macro.inc"
|
||||
|
||||
# assembler directives
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
.set gp=64 # allow use of 64-bit general purposee registers
|
||||
|
||||
.section .data
|
||||
|
||||
glabel D_8012D2A0
|
||||
.incbin "baserom.z64", 0xBA4440, 0x30
|
||||
Reference in New Issue
Block a user