projects
/
ned1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a.out format for NED binaries to track symbols through to the disassembler.
[ned1]
/
nedasm
/
nedasm.c
diff --git
a/nedasm/nedasm.c
b/nedasm/nedasm.c
index
4b4d3bc
..
c82233d
100644
(file)
--- a/
nedasm/nedasm.c
+++ b/
nedasm/nedasm.c
@@
-14,7
+14,7
@@
#include "nedasm_parser.h"
#include "nedasm_codegen.h"
#include "nedasm_parser.h"
#include "nedasm_codegen.h"
-#define VERSION
1
+#define VERSION
2
void
print_usage(char ** argv)
void
print_usage(char ** argv)
@@
-195,10
+195,6
@@
main(int argc, char ** argv)
*/
parse_assembly(&instructions, input);
fclose(input);
*/
parse_assembly(&instructions, input);
fclose(input);
-// if (instructions == NULL) {
-// fprintf(stderr, "ERROR: Failed to parse any input.\n");
-// exit(EXIT_FAILURE);
-// }
/*
* Make passes over the intermediate representation to enforce architecture
/*
* Make passes over the intermediate representation to enforce architecture
@@
-208,7
+204,6
@@
main(int argc, char ** argv)
enforce_word_boundary(instructions);
assign_addresses(instructions);
resolve_labels(instructions);
enforce_word_boundary(instructions);
assign_addresses(instructions);
resolve_labels(instructions);
- prune_label_structs(instructions);
generate_code(instructions, output);
generate_code(instructions, output);