Added a "usage" message and colours for assembler

Prints useful and pretty messages when verbose being at least 1.
This commit is contained in:
2023-10-29 16:58:58 +00:00
parent 597a45aa73
commit 157c79d53c
3 changed files with 45 additions and 22 deletions

View File

@@ -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,