diff options
author | Bad Diode <bd@badd10de.dev> | 2022-04-25 12:20:30 -0300 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2022-04-25 12:20:30 -0300 |
commit | 2f738a73790258514f86614ba9a9591578a5bdf0 (patch) | |
tree | 9fe7759e16ec0c699669f99c7e80c8419f9e7615 /src/viz.c | |
parent | ada3f3a2eac5b3828c3a55970d5640fef922d3d0 (diff) | |
download | bdl-2f738a73790258514f86614ba9a9591578a5bdf0.tar.gz bdl-2f738a73790258514f86614ba9a9591578a5bdf0.zip |
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(" "); |