aboutsummaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-29 16:58:58 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-29 16:59:31 +0000
commit157c79d53c4d04f6c6af1103a2db3a652b240edb (patch)
treeec6e535c94dcd65a2c5d39ae9361ca01b827722a /vm
parent597a45aa73d4d66fce4dd9135087e0e82f46899c (diff)
downloadovm-157c79d53c4d04f6c6af1103a2db3a652b240edb.tar.gz
ovm-157c79d53c4d04f6c6af1103a2db3a652b240edb.tar.bz2
ovm-157c79d53c4d04f6c6af1103a2db3a652b240edb.zip
Added a "usage" message and colours for assembler
Prints useful and pretty messages when verbose being at least 1.
Diffstat (limited to 'vm')
-rw-r--r--vm/main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/vm/main.c b/vm/main.c
index 2b82cd3..2594edc 100644
--- a/vm/main.c
+++ b/vm/main.c
@@ -42,15 +42,6 @@ int interpret_bytecode(const char *filepath)
return ret;
}
-int assemble_instructions(inst_t *instructions, size_t number,
- const char *filepath)
-{
- FILE *fp = fopen(filepath, "wb");
- insts_write_bytecode_file(instructions, number, fp);
- fclose(fp);
- return 0;
-}
-
void usage(const char *program_name, FILE *out)
{
fprintf(out,