mirror of
https://github.com/notwa/lips
synced 2024-11-14 19:39:03 -08:00
add more instructions
This commit is contained in:
parent
9ccf2fd883
commit
03cb168ad0
1 changed files with 15 additions and 8 deletions
23
lips.lua
23
lips.lua
|
@ -108,9 +108,9 @@ local instructions = {
|
||||||
D: floating point register for fd
|
D: floating point register for fd
|
||||||
S: floating point register for fs
|
S: floating point register for fs
|
||||||
T: floating point register for ft
|
T: floating point register for ft
|
||||||
o: constant for offset (uses lower halfword)
|
o: constant for offset
|
||||||
b: register to dereference for base
|
b: register to dereference for base
|
||||||
r: relative constant or label (uses lower halfword)
|
r: relative constant or label for offset
|
||||||
i: immediate (must fit in a halfword)
|
i: immediate (must fit in a halfword)
|
||||||
I: constant or label for index (long jump)
|
I: constant or label for index (long jump)
|
||||||
j: (unused) immediate (uses lower halfword)
|
j: (unused) immediate (uses lower halfword)
|
||||||
|
@ -349,14 +349,21 @@ local instructions = {
|
||||||
TLTIU = {1, 'si', 'sCi', 11},
|
TLTIU = {1, 'si', 'sCi', 11},
|
||||||
TNEI = {1, 'si', 'sCi', 14},
|
TNEI = {1, 'si', 'sCi', 14},
|
||||||
|
|
||||||
CACHE = {},
|
-- immediate limited to 3 bits?
|
||||||
ERET = {},
|
CACHE = {47, 'iob', 'bio'},
|
||||||
|
|
||||||
TLBP = {},
|
-- misuses 'F' to write the initial bit
|
||||||
TLBR = {},
|
ERET = {16, '', 'F000C', 24, 16},
|
||||||
TLBWI = {},
|
TLBP = {16, '', 'F000C', 8, 16},
|
||||||
TLBWR = {},
|
TLBR = {16, '', 'F000C', 1, 16},
|
||||||
|
TLBWI = {16, '', 'F000C', 2, 16},
|
||||||
|
TLBWR = {16, '', 'F000C', 6, 16},
|
||||||
|
|
||||||
|
-- 'c' is unimplemented
|
||||||
|
--BC1F = {17, 'co', 'Cco', 8, 0},
|
||||||
|
--BC1FL = {17, 'co', 'Cco', 8, 2},
|
||||||
|
--BC1T = {17, 'co', 'Cco', 8, 1},
|
||||||
|
--BC1TL = {17, 'co', 'Cco', 8, 3},
|
||||||
BC1F = {},
|
BC1F = {},
|
||||||
BC1FL = {},
|
BC1FL = {},
|
||||||
BC1T = {},
|
BC1T = {},
|
||||||
|
|
Loading…
Reference in a new issue