44 lines
751 B
Lua
44 lines
751 B
Lua
|
|
-- Recommended method to import this module:
|
|
-- local gpr = require("ee-gpr-alias")
|
|
--
|
|
-- Using the global 'lang' variable is depreciated. This will change to a local-scope variable after
|
|
-- the depreciation period has expired in April 2016.
|
|
|
|
gpr = {}
|
|
|
|
gpr.zero = 0
|
|
gpr.at = 1
|
|
gpr.v0 = 2
|
|
gpr.v1 = 3
|
|
gpr.a0 = 4
|
|
gpr.a1 = 5
|
|
gpr.a2 = 6
|
|
gpr.a3 = 7
|
|
gpr.t0 = 8
|
|
gpr.t1 = 9
|
|
gpr.t2 = 10
|
|
gpr.t3 = 11
|
|
gpr.t4 = 12
|
|
gpr.t5 = 13
|
|
gpr.t6 = 14
|
|
gpr.t7 = 15
|
|
gpr.s0 = 16
|
|
gpr.s1 = 17
|
|
gpr.s2 = 18
|
|
gpr.s3 = 19
|
|
gpr.s4 = 20
|
|
gpr.s5 = 21
|
|
gpr.s6 = 22
|
|
gpr.s7 = 23
|
|
gpr.t8 = 24
|
|
gpr.t9 = 25
|
|
gpr.k0 = 26
|
|
gpr.k1 = 27
|
|
gpr.gp = 28
|
|
gpr.sp = 29
|
|
gpr.fp = 30
|
|
gpr.ra = 31
|
|
|
|
return gpr
|