516 Commits

Author SHA1 Message Date
Mikael Pettersson
137ccba768 as: input: move pass 1 and 2 to separate modules 2024-01-28 18:41:42 +01:00
Mikael Pettersson
84742bfddc as: parse: support [<stmts>] literals in <expr>, for MACRO-10 compatibility 2023-10-21 18:31:31 +02:00
Mikael Pettersson
47c3534f72 as: parse: treat ] as <eol> for <stmt> 2023-10-21 18:31:31 +02:00
Mikael Pettersson
c095fc506b as: parse: move <stmt> <eol> handling to helper functions 2023-10-21 18:31:31 +02:00
Mikael Pettersson
ad5a2a38f2 as: parse: leave <eol> after <stmt> for upper layers to consume 2023-10-21 18:31:31 +02:00
Mikael Pettersson
ec5cb404f3 as: scan: add support for [ and ] tokens 2023-10-21 18:31:31 +02:00
Mikael Pettersson
526a33a732 as: token: add support for [ and ] tokens 2023-10-21 18:31:31 +02:00
Mikael Pettersson
8c0611d333 as: scan: make numbers octal by default, for MACRO-10 compatibility; support 0d as decimal prefix 2023-10-21 18:31:16 +02:00
Mikael Pettersson
3ff0f8f203 as: handle .type <sym>,@object 2023-10-13 20:27:30 +02:00
Mikael Pettersson
1455bfc2e2 opcodes: mark SKIPA as E_UNUSED 2023-10-11 19:03:28 +02:00
Mikael Pettersson
6bd82dd571 as: treat . as a symbol in expressions 2023-10-11 18:36:50 +02:00
Mikael Pettersson
36356bbbe6 as: treat ; as starting a line comment, for MACRO-10 compatibility 2023-10-09 21:53:17 +02:00
Mikael Pettersson
d0c78d4423 as: allow upper-case instruction mnemonics 2023-10-09 21:16:11 +02:00
Mikael Pettersson
67361ef2d8 as: add support for .debug* sections 2023-10-07 17:51:00 +02:00
Mikael Pettersson
3c3fbae342 as: add support for .string directive 2023-10-07 17:06:45 +02:00
Mikael Pettersson
1b39e2dc92 as: fix scanning of hex numerals 2023-10-07 16:21:47 +02:00
Mikael Pettersson
f9ea1d57ab as: add support for .2byte and .4byte directives 2023-10-07 16:18:39 +02:00
Mikael Pettersson
39f938c7bb as: add support for Sym1-Sym2 expressions 2023-10-07 16:18:20 +02:00
Mikael Pettersson
81903d1517 TODO: remove ranlib note, add as/ld notes detected by gcc 2023-09-10 17:22:57 +02:00
Mikael Pettersson
149bad4289 ranlib: install as a symlink to ar 2023-09-09 20:06:19 +02:00
Mikael Pettersson
b44d57482b ar: emulate ranlib when invoked as ranlib 2023-09-09 20:05:47 +02:00
Mikael Pettersson
3db8f7e60d elf2boot: remove workaround for recently fixed pdp10_stdio bug 2023-09-06 20:39:11 +02:00
Mikael Pettersson
dc517a8710 pdp10_stdio:handle_fopen/2: handling writes after seeks may require reads, so try to get read access even if the user did not ask for it 2023-09-06 20:39:11 +02:00
Mikael Pettersson
61dcfccd0d pdp10_stdio:prepare_to_write/1: fix failure to reload shiftreg after seek 2023-09-06 20:39:04 +02:00
Mikael Pettersson
0d64455d0d elf2boot: new tool to convert static ELF executables to KLH10-bootable images 2023-09-03 17:43:09 +02:00
Mikael Pettersson
e2c3811daa od: use * to mark suppressed ranges of duplicate lines 2023-09-03 15:29:49 +02:00
Mikael Pettersson
1f102c13bc readelf: use octal for addresses and accumulators 2023-09-03 15:29:49 +02:00
Mikael Pettersson
29fa941e46 rebar.config: trim list of unused exports 2023-09-02 16:46:40 +02:00
Mikael Pettersson
4adb051325 add "make install", installing the tools with pdp10-elf- prefixes 2023-08-24 21:25:29 +02:00
Mikael Pettersson
a55acb51f5 rebar.config: explicitly name escript main modules, so the scripts work even if renamed 2023-08-24 21:23:03 +02:00
Mikael Pettersson
5754587b35 pdp10-abi.txt: update definition of register contents at process start 2023-08-22 19:34:34 +02:00
Mikael Pettersson
9239504ce1 pdp10-abi.txt: in large and medium code models, text starts at page 1 in its section, not offset 020 2023-08-22 19:33:12 +02:00
Mikael Pettersson
36b1a93485 sim_loader: allocate the stack in section 1 not 0 2023-08-21 21:32:01 +02:00
Mikael Pettersson
018497f147 sim_core.hrl: fix typo in docs 2023-08-21 21:29:23 +02:00
Mikael Pettersson
828522d5ef ld_assign: make .text start in section 2 not 1 2023-08-21 21:18:00 +02:00
Mikael Pettersson
cdd7fb386e pdp10-abi.txt: in large and medium code models, move text to section 2 and stack to section 1 2023-08-21 20:58:40 +02:00
Mikael Pettersson
68884d8822 pdp10-abi.txt: fix typos 2023-08-21 20:55:46 +02:00
Mikael Pettersson
f0d8c5bf84 commit some old notes about as and macro10 2023-08-19 19:36:42 +02:00
Mikael Pettersson
632c3aafe5 remove obsolete C code 2023-08-19 19:30:10 +02:00
Mikael Pettersson
dfd5ef162e drop 'clone' from tool descriptions 2023-08-19 19:03:47 +02:00
Mikael Pettersson
fdd0da6a6b readelf: in disassembly print insn virtual addresses not their in-unit offsets 2023-08-19 18:44:10 +02:00
Mikael Pettersson
4f130e89e6 ld_output: add support for archives 2023-08-18 19:17:19 +02:00
Mikael Pettersson
c852cb50f9 ld_output: cleanups 2023-08-18 18:58:58 +02:00
Mikael Pettersson
817bb04464 ld_symtab: add support for archives 2023-08-18 18:58:58 +02:00
Mikael Pettersson
522b7101ca ld_symtab: cleanups 2023-08-18 18:58:58 +02:00
Mikael Pettersson
b4ec2ef819 ld_assign: cleanups 2023-08-18 18:58:58 +02:00
Mikael Pettersson
fbb8276b11 ld_phase2: correct ordering of sections within a segment 2023-08-18 18:58:58 +02:00
Mikael Pettersson
5715703100 ld_phase2: cleanups 2023-08-18 18:58:58 +02:00
Mikael Pettersson
0438e1287c ld_phase1: add support for archives 2023-08-18 18:58:58 +02:00
Mikael Pettersson
6d5a4e61b5 ld_phase1: cleanups 2023-08-18 18:58:58 +02:00