Commit Graph

28 Commits

Author SHA1 Message Date
Mikael Pettersson
589e2c40bb as: parse: use tokens' location tags for diagnostics 2019-12-26 21:16:03 +01:00
Mikael Pettersson
34202b2e2f as: scan: tag returned tokens with start locations; parse: ignore them 2019-12-26 21:15:35 +01:00
Mikael Pettersson
f676ed8428 as: input: handle .data directive and section 2019-12-25 17:27:27 +01:00
Mikael Pettersson
24753d5e6d as: parse: handle .data directive 2019-12-25 17:27:27 +01:00
Mikael Pettersson
effc77d47a as: tunit: handle .data directive 2019-12-25 17:27:27 +01:00
Mikael Pettersson
3030d31385 as: token: handle .data directive 2019-12-25 17:27:27 +01:00
Mikael Pettersson
d18a218203 as: input: handle unknown section error in .pushsection 2019-12-25 17:27:19 +01:00
Mikael Pettersson
f07d47b9dd as: input: extend sectionsmap() to also record a #section{} 2019-12-25 17:26:41 +01:00
Mikael Pettersson
1d0f244efa as: input: clean up section and subsection switching 2019-12-25 17:26:25 +01:00
Mikael Pettersson
8acfabae2b as: input: rename Section to SectionName and Subsection to SubsectionNr 2019-12-25 17:26:12 +01:00
Mikael Pettersson
dbc357c556 as: input: correct type of sections_map field in #ctx{} 2019-12-25 16:56:49 +01:00
Mikael Pettersson
761a62817d as: support subsections and section stack directives 2019-12-08 17:01:35 +01:00
Mikael Pettersson
273ce47561 as: scan_state: replace filename/1 and linenr/1 with location/1 2019-12-08 16:59:33 +01:00
Mikael Pettersson
5c633b99f4 as: scan: accept semi-colon as statement separator 2019-12-08 16:59:33 +01:00
Mikael Pettersson
c172f2df4b as: use pdp10_extint:uint{18,36}_to_ext/1 2019-09-09 17:48:24 +02:00
Mikael Pettersson
858cec95bb pdp10_stdio:fopen/2: silence unwanted crash report on failure; scan_state:fopen/1: likewise 2019-09-08 19:06:29 +02:00
Mikael Pettersson
d3e5383f36 as: support local labels 2019-09-08 17:48:18 +02:00
Mikael Pettersson
162faefd81 as: tunit: correct type of address field in #s_insn{} 2019-09-08 17:48:08 +02:00
Mikael Pettersson
c41caee3ba as: support symbols in instruction displacement operands 2019-09-07 13:44:51 +02:00
Mikael Pettersson
af93b5caab as: parse: Accumulator is not mandatory in PDP10_INSN_BASIC instructions 2019-09-07 13:41:27 +02:00
Mikael Pettersson
c6c6aeeee4 as: tunit.erl: add missing -spec:s 2019-09-07 13:41:27 +02:00
Mikael Pettersson
c1bd54af52 as: parse: correct reference to stack pointer in example 2019-09-07 11:06:40 +02:00
Mikael Pettersson
3cfa254f46 as: macro10.txt: use consistent and less archaic terminology, tidy 2019-09-07 11:06:19 +02:00
Mikael Pettersson
704fdf995e as: add some docs on MACRO-10 syntax 2019-09-02 22:07:24 +02:00
Mikael Pettersson
07d88d7697 as: fix missed call to error:format/1 2019-08-17 18:37:15 +02:00
Mikael Pettersson
026bc3b8e2 as: correct .file symbols to be SHN_ABS, init sh_link with SHN_UNDEF not 0, add FIXME to symbols_image/0 2019-08-17 17:49:47 +02:00
Mikael Pettersson
295a44f67d as: convert to module-tagged errors, format_error/1, and error:format/1; improve specs 2019-08-16 21:43:04 +02:00
Mikael Pettersson
ce0595ef44 as: rewrite in Erlang, initial version 2019-08-13 19:21:57 +02:00