@@ -158,6 +158,8 @@ Opcode | Mnemonic | Pseudocode
158
158
159
159
## Branch Instructions
160
160
161
+ ### 64-bit
162
+
161
163
Opcode | Mnemonic | Pseudocode
162
164
-------|---------------------|------------------------
163
165
0x05 | ja +off | PC += off
@@ -185,3 +187,33 @@ Opcode | Mnemonic | Pseudocode
185
187
0xdd | jsle dst, src, +off | PC += off if dst <= src (signed)
186
188
0x85 | call imm | Function call
187
189
0x95 | exit | return r0
190
+
191
+ ### 32-bit
192
+
193
+ These instructions use only the lower 32 bits of their operands and zero the
194
+ upper 32 bits of the destination register.
195
+
196
+ Opcode | Mnemonic | Pseudocode
197
+ -------|---------------------|------------------------
198
+ 0x16 | jeq dst, imm, +off | PC += off if dst == imm
199
+ 0x1e | jeq dst, src, +off | PC += off if dst == src
200
+ 0x26 | jgt dst, imm, +off | PC += off if dst > imm
201
+ 0x2e | jgt dst, src, +off | PC += off if dst > src
202
+ 0x36 | jge dst, imm, +off | PC += off if dst >= imm
203
+ 0x3e | jge dst, src, +off | PC += off if dst >= src
204
+ 0xa6 | jlt dst, imm, +off | PC += off if dst < imm
205
+ 0xae | jlt dst, src, +off | PC += off if dst < src
206
+ 0xb6 | jle dst, imm, +off | PC += off if dst <= imm
207
+ 0xbe | jle dst, src, +off | PC += off if dst <= src
208
+ 0x46 | jset dst, imm, +off | PC += off if dst & imm
209
+ 0x4e | jset dst, src, +off | PC += off if dst & src
210
+ 0x56 | jne dst, imm, +off | PC += off if dst != imm
211
+ 0x5e | jne dst, src, +off | PC += off if dst != src
212
+ 0x66 | jsgt dst, imm, +off | PC += off if dst > imm (signed)
213
+ 0x6e | jsgt dst, src, +off | PC += off if dst > src (signed)
214
+ 0x76 | jsge dst, imm, +off | PC += off if dst >= imm (signed)
215
+ 0x7e | jsge dst, src, +off | PC += off if dst >= src (signed)
216
+ 0xc6 | jslt dst, imm, +off | PC += off if dst < imm (signed)
217
+ 0xce | jslt dst, src, +off | PC += off if dst < src (signed)
218
+ 0xd6 | jsle dst, imm, +off | PC += off if dst <= imm (signed)
219
+ 0xde | jsle dst, src, +off | PC += off if dst <= src (signed)
0 commit comments