diff options
author | David Phillips <david@sighup.nz> | 2019-08-01 23:12:34 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2019-08-03 12:44:12 +1200 |
commit | 28d6a88c02f10b75fb4c5cb46178d2ef71629494 (patch) | |
tree | ecea67672dfc7cb638e9c8bd474850094ca5064b /input_bin.h | |
parent | 15b556038033821aa85392f4013d68999f14e231 (diff) | |
download | toy-cpu-assembler-28d6a88c02f10b75fb4c5cb46178d2ef71629494.tar.xz |
Refactor disassembler to move data through instruction list
This refactors the disassembler into two stages with the list of struct
instruction (currently also output by the parse stage) as an "intermediate
language" between disassembly and assembler output. This should make these
units, especially the "machine code => IL" section, more reusable for future
soft emulation work.
Diffstat (limited to 'input_bin.h')
-rw-r--r-- | input_bin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/input_bin.h b/input_bin.h new file mode 100644 index 0000000..7683835 --- /dev/null +++ b/input_bin.h @@ -0,0 +1,6 @@ +#ifndef INPUT_BIN_H +#define INPUT_BIN_H + +int disasm(FILE *f, struct instruction **i, size_t *i_count); + +#endif /* INPUT_BIN_H */ |