SBSPSS/source/system/gp.mip
2000-08-29 19:56:03 +00:00

29 lines
223 B
Plaintext

global SaveGP
global ReloadGP
global SetGP
section .data
GpSave dw 0
section .text
SaveGP
la t8,GpSave
j ra
sw gp,0(t8)
ReloadGP
add v0,gp,r0
la t8,GpSave
j ra
lw gp,0(t8)
SetGP
j ra
add gp,a0,r0