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 /bincat.c | |
parent | 085145a1f49ffcae235fa559df254919366fe497 (diff) | |
download | toy-cpu-assembler-22575e056586a7810007952c717eff4e9e005bdb.tar.xz |
File input and output routines away
Diffstat (limited to 'bincat.c')
-rw-r--r-- | bincat.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,8 +4,8 @@ #include "instruction.h" #include "parse.h" -#include "input_bin.h" -#include "output.h" +#include "input/input_bin.h" +#include "output/output_bin.h" void print_help(const char *argv0) { @@ -60,10 +60,10 @@ int main(int argc, char **argv) labels = NULL; labels_count = 0; - if ((ret = disasm(fin, &insts, &insts_count))) + if ((ret = input_bin(fin, &insts, &insts_count))) return error_ret && ret; - 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; |