forked from Ports/goldeneye-pc-port
Former-commit-id: 4e31852caa34ebc2f63881b08f277bfeb21cdaa0 [formerly 5139464ee6ce1c127dafbc8ef17000873087768a] [formerly c4a983962ac3ed29ddcb9c00eb74e60743f1d653 [formerly dfcb0aa6202271dae4203489f55ae2fc7b678042]] Former-commit-id: a0dac1e7035f001e1116a5c4f8c25aa048a3f109 [formerly 1cd9405c8ff8aa0bd704907fac4a3d43a8f6739f] Former-commit-id: d325e3405eb9f39f27491a4f311d6965355d5d2d
23 lines
392 B
PHP
23 lines
392 B
PHP
.macro get_value name, value
|
|
.global get_\name
|
|
get_\name:
|
|
lui $v0, %hi(\value)
|
|
jr $ra
|
|
addiu $v0, $v0, %lo(\value)
|
|
.endm
|
|
|
|
.macro jump_via_reg location, register=$a3
|
|
.global jump_\location
|
|
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
|