1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-06-26 03:57:13 -07:00

use relative return labels

This commit is contained in:
Connor Olding 2016-04-10 07:17:23 -07:00
parent e74da86e3e
commit 35a3d1ee43

View File

@ -210,13 +210,13 @@ shuffle_get:
beq a0, t5, + beq a0, t5, +
nop nop
addi t1, t1, 1 addi t1, t1, 1
beq t1, t0, shuffle_get_return beq t1, t0, +return
nop nop
b - b -
addi t4, t4, 4 ; 2*sizeof(halfword) addi t4, t4, 4 ; 2*sizeof(halfword)
+: +:
lhu v0, 2(t4) lhu v0, 2(t4)
shuffle_get_return: +return:
jpop 4, ra, 1 jpop 4, ra, 1
unset_alt_scene: unset_alt_scene:
@ -270,7 +270,7 @@ set_alt_scene:
li a1, 33 li a1, 33
jal get_event_flag jal get_event_flag
li a2, 7 li a2, 7
beqz v0, set_alt_scene_return beqz v0, +return
nop nop
andi t9, s0, 0x01FF andi t9, s0, 0x01FF
andi t0, s0, 0xFE00 andi t0, s0, 0xFE00
@ -289,7 +289,7 @@ set_alt_scene:
li at, 0xB600 li at, 0xB600
addu s0, t9, at addu s0, t9, at
+: +:
set_alt_scene_return: +return:
mov v0, s0 mov v0, s0
jpop 4, s0, ra jpop 4, s0, ra