FreeCalypso > hg > freecalypso-reveng
annotate blobstat/main.c @ 318:4e1d7ce0ee71
frbl/reconst/boot.c: perfect match to TCS211 boot.obj
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 05 Mar 2020 00:27:22 +0000 |
parents | ff2a6433687f |
children |
rev | line source |
---|---|
294
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 #include <stdio.h> |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 #include <stdlib.h> |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 main(argc, argv) |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 char **argv; |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 { |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 if (argc != 3) { |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 fprintf(stderr, "usage: %s class-file map-file\n", argv[0]); |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 exit(1); |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 } |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 read_class_file(argv[1]); |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 process_map_file(argv[2]); |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 print_output(); |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 exit(0); |
ff2a6433687f
blobstat: code finished, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 } |