mirror of https://github.com/n64decomp/007.git
21 lines
351 B
PHP
21 lines
351 B
PHP
.macro get_value name, value
|
|
get_\name:
|
|
lui $v0, %hi(\value)
|
|
jr $ra
|
|
addiu $v0, $v0, %lo(\value)
|
|
.endm
|
|
|
|
.macro jump_via_reg location, register=$a3
|
|
jump_\location:
|
|
lui \register, %hi(\location)
|
|
addiu \register, \register, %lo(\location)
|
|
jr \register
|
|
nop
|
|
.endm
|
|
|
|
|
|
.macro debug_handler_table_entry sp, string
|
|
.word \sp
|
|
.word \string
|
|
.endm
|