diff options
author | David Phillips <david@sighup.nz> | 2019-08-03 14:44:12 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-08-03 14:47:14 +1200 |
commit | 22575e056586a7810007952c717eff4e9e005bdb (patch) | |
tree | 92b7407994b7e183f4723ed80641bb75a6f2ca32 /assembler.c | |
parent | 085145a1f49ffcae235fa559df254919366fe497 (diff) | |
download | toy-cpu-assembler-22575e056586a7810007952c717eff4e9e005bdb.tar.xz |
File input and output routines away
Diffstat (limited to 'assembler.c')
-rw-r--r-- | assembler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assembler.c b/assembler.c index 36f3f03..9ffdb85 100644 --- a/assembler.c +++ b/assembler.c @@ -5,7 +5,7 @@ #include "lex.h" #include "parse.h" #include "instruction.h" -#include "output.h" +#include "output/output_bin.h" void print_help(const char *argv0) { @@ -70,7 +70,7 @@ int main(int argc, char **argv) /* FIXME insert optional pass for optimisation */ - if ((ret = output(fout, labels, labels_count, insts, insts_count))) + if ((ret = output_bin(fout, labels, labels_count, insts, insts_count))) return error_ret && ret; return 0; |