little tip if the value of an address is an nop (0x00000000) you don't have to load the value just use the register zero.
example:
lui t0, $[first half]
sw zero, $[sec. half] (t0)
jr ra
you could have shortened that routine like this:
lui t0, $08a6
lui t0, $03e0
ori t0, t0 $0008
sw t0, $2580 (t0)
sw zero, $2584 (t0)
jr ra
and just add a hook to it. You don't have to, have two routines and use two hooks for it.





Reply With Quote

Bookmarks