Add some more instructions for the mips assembler

This commit is contained in:
pancake 2017-08-01 06:01:33 +02:00
parent 6aec198df7
commit 0140bf07b3

View File

@ -23,6 +23,14 @@ static struct {
} ops[] = {
{ "nop", 'N', 0, 0 },
{ "lui", 'I', 2, 15 },
{ "swr", 'I', 2, 46 },
{ "cache", 'I', 3, 47 },
{ "ll", 'I', 3, 48 },
{ "tlt", 'R', 2, 50},
{ "tne", 'R', 2, 54},
{ "movn", 'R', 3, 11},
{ "movz", 'R', 3, 10},
{ "move", 'R', 2, 10},
{ "sw", 'I', 3, 43 },
{ "sh", 'I', 3, 41 },
{ "sb", 'I', 3, 40 },
@ -40,14 +48,10 @@ static struct {
{ "bgez", 'I', -2, -1 },
{ "bgtz", 'I', -2, 7 },
{ "blez", 'I', -2, 6 },
{ "bltz", 'I', -2, 1 },
{ "syscall", 'R', 0, 12 },
{ "break", 'R', 0, 13 },
{ "nor", 'R', 3, 39 },
{ "or", 'R', 3, 37 },
{ "xor", 'R', 3, 38 },
{ "and", 'R', 3, 36 },
{ "sll", 'R', -3, 0 },
{ "bltz", 'I', -2, 1 },
{ "sllv", 'R', 3, 4 },
{ "slt", 'R', 3, 42 },
{ "sltu", 'R', 3, 43 },
@ -59,6 +63,10 @@ static struct {
{ "addu", 'R', 3, 33 },
{ "sub", 'R', 3, 34 },
{ "subu", 'R', 3, 35 },
{ "and", 'R', 3, 36 },
{ "or", 'R', 3, 37 },
{ "xor", 'R', 3, 38 },
{ "nor", 'R', 3, 39 },
{ "mult", 'R', 2, 24 },
{ "multu", 'R', 2, 25 },
{ "div", 'R', 2, 26 },