ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
21-2318-2015-1712-149-116-83-50-2MnemonicUsageDescriptionNotes
2
immr0rd00LOADload rd, imm(r0)Loads data from memory into a register.rd = *(r0 + imm)
3
immr1r001STOREstore r0, imm(r1)Stores data from a register into memory.Acts like load.
4
immr0rd002ADD IMMadd rd, r0, immAdds a register and an immediate.
5
immr0rd102SUB IMMsub rd, r0, immSubtracts a register and an immediate.
6
001r0rd202OSR IMMosr rd, r0Performs an right octit shift on a register.
Immediate is set to 001 for forwards compatibility for when I get around to makin a barrel shifter in V2.
7
r1r0rd003ADD REGadd rd, r0, r1Adds two registers together.
8
r1r0rd103SUB REGsub rd, r0, r1Subtracts two registers together.
9
labelrd04JALjal rd, labelJumps to the address given and saves the old program counter in a register.Immediate is an offset from the current program counter.
10
r0rd05JALRjal rd, r0Jumps to an address in a register and saves the old program counter in a register.
11
labelr1r0006BLTblt r0, r1, labelBranches to an address if r0 < r1 (signed).Immediate is an offset from the current program counter.
12
labelr1r0106BLTUbltu r0, r1, labelBranches to an address if r0 < r1 (unsigned).^
13
labelr1r0206BEQbeq r0, r1, labelBranches to an address if r0 == r1.^
14
labelr1r0306BNEbne r0, r1, labelBranches to an address if r0 != r1.^
15
immrd007LLIlli rd, immLoads the immediate into the lower 12 bits of a register, sign extended.
16
immrd107AUIaui rd, immAdds the immediate into the upper 12 bits of a register.
17
All immediates are sign extended.
18
mrr010MLOADmload mr, r0Loads a register into a machine register.
19
mrrd11MSTOREmstore rd, mrStores a machine register into a register.
20
mrrd12MSWAPmswap mr, rdSwaps the contents of a machine register and a register.
21
13SYSCALLsyscallPerforms a syscall in user mode to machine mode.
22
14MRETmretPerforms a return from an interrupt, updating the current mode and exception enables.
23
15
24
16
25
17
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100