Added a "usage" message and colours for assembler
Prints useful and pretty messages when verbose being at least 1.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user