mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
* Update some submodules, and tweak some printf code to more closely match the exact names and style of the official glibc version * Update some offsets * Clean up math_util.s, and figure out how to fix the sins functions just being labels. Now the elf file properly shows up as a function with the correct offset. * Fix tables, and clean up some float values
39 lines
517 B
C++
39 lines
517 B
C++
# common macros
|
|
|
|
# Assembly Macros
|
|
|
|
.set K0BASE, 0x80000000
|
|
.set K1BASE, 0xA0000000
|
|
.set K2BASE, 0xC0000000
|
|
|
|
.macro glabel label
|
|
.global \label
|
|
\label:
|
|
.endm
|
|
|
|
.macro .word32 x
|
|
.word \x
|
|
.endm
|
|
|
|
.macro BANK_INDEX bank, index
|
|
.half \bank
|
|
.half \index
|
|
.endm
|
|
|
|
.macro move a, b
|
|
addu \a, \b, $zero
|
|
.endm
|
|
|
|
.macro leaf label
|
|
.global \label
|
|
\label:
|
|
.ent \label
|
|
.endm
|
|
|
|
# Used for alternative entries for Sin functions
|
|
.macro altleaf label
|
|
.global \label
|
|
\label:
|
|
.aent \label
|
|
.endm
|