diff options
Diffstat (limited to 'src/viz.c')
-rw-r--r-- | src/viz.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -272,6 +272,7 @@ static const char* basm_op_str[] = { | |||
272 | [OP_JMP_LT] = "jlt ", | 272 | [OP_JMP_LT] = "jlt ", |
273 | [OP_JMP_GE] = "jge ", | 273 | [OP_JMP_GE] = "jge ", |
274 | [OP_JMP_LE] = "jle ", | 274 | [OP_JMP_LE] = "jle ", |
275 | [OP_RETURN] = "ret ", | ||
275 | }; | 276 | }; |
276 | 277 | ||
277 | void | 278 | void |
@@ -311,11 +312,16 @@ viz_instruction(Instruction *inst, LineInfo *line) { | |||
311 | viz_operand(inst->src_b); | 312 | viz_operand(inst->src_b); |
312 | } | 313 | } |
313 | } break; | 314 | } break; |
315 | case OP_RETURN: | ||
314 | case OP_JMP: | 316 | case OP_JMP: |
315 | case OP_LABEL: { | 317 | case OP_LABEL: { |
316 | printf(" "); | 318 | printf(" "); |
317 | viz_operand(inst->dst); | 319 | viz_operand(inst->dst); |
318 | } break; | 320 | } break; |
321 | case OP_CP8: | ||
322 | case OP_CP16: | ||
323 | case OP_CP32: | ||
324 | case OP_CP64: | ||
319 | case OP_JMP_TRUE: | 325 | case OP_JMP_TRUE: |
320 | case OP_JMP_FALSE: { | 326 | case OP_JMP_FALSE: { |
321 | printf(" "); | 327 | printf(" "); |