summaryrefslogtreecommitdiff
path: root/dis.h
blob: 47b73a646bcd4ae5ff7a0eb6bdd6cb141114c1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _dis_h
#define _dis_h

#include "vm.h"

void disasm_chunk(Chunk *ch);
// returns length of disasmed instr in bytes
size_t disasm_instr(Chunk *ch, size_t ip);

char *op_name(Op op);

#endif