Commit Graph

536 Commits

Author SHA1 Message Date
Mikael Pettersson
1f230f9e61 extint.erl: add support for converting between octets and 16/32/64-bit types 2025-08-13 14:34:19 +02:00
Mikael Pettersson
d9055597f9 rename pdp10_extint.erl to extint.erl 2025-08-13 14:34:19 +02:00
Mikael Pettersson
4206dc5415 stdint.hrl: also support 8/16/32/64-bit integers 2025-08-13 14:34:19 +02:00
Mikael Pettersson
dcc1e86f5d stdint.hrl: move size-dependent min/max computations to helper macros 2025-08-13 14:34:19 +02:00
Mikael Pettersson
7348b7776b rename pdp10_stdint.hrl to stdint.hrl, drop PDP10_ prefixes from macros 2025-08-13 14:34:19 +02:00
Mikael Pettersson
a52866cd52 rename pdp10_elf36.elf to libelf.erl 2025-08-13 14:34:19 +02:00
Mikael Pettersson
c6091d8803 libelf.hrl: move PDP-10 reloc declarations to new pdp10_relocs.hrl 2025-08-13 14:34:19 +02:00
Mikael Pettersson
77d7658247 rename pdp10_elf36.hrl to libelf.hrl 2025-08-13 14:29:21 +02:00
Mikael Pettersson
78a2a4f827 pdp10_elf36: make types and macros generic ELF and not ELF-36 specific 2025-08-11 20:22:37 +02:00
Mikael Pettersson
659ba1eb52 elf2boot: use stdio8 not file 2025-08-11 18:32:42 +02:00
Mikael Pettersson
f02023c9b0 stdio8: new, stdio API for octet-based files 2025-08-11 18:32:42 +02:00
Mikael Pettersson
6b60f3c6a9 elf2boot: use stdio9 not pdp10_stdio 2025-08-11 18:32:42 +02:00
Mikael Pettersson
f3e9c62191 pdp10_stdio: new, provide compatibility wrapper around stdio9 2025-08-11 18:32:42 +02:00
Mikael Pettersson
c150b7bd35 stdio9: simplify fread/3 to /2 2025-08-11 18:32:38 +02:00
Mikael Pettersson
a23ea12844 rename pdp10_stdio to stdio9 2025-08-09 12:51:33 +02:00
Mikael Pettersson
c21cf1422a pdp10_elf36.hrl: sync with binutils-2.45 ELF definitions 2025-08-09 12:08:59 +02:00
Mikael Pettersson
7a5ff6e992 elf2boot: allow selecting C36 or H36 as output format, make C36 default 2025-08-08 20:14:11 +02:00
Mikael Pettersson
18ee8e6453 elf2boot: generate output one full word at a time 2025-08-08 18:09:03 +02:00
Mikael Pettersson
b5e2857116 pdp10_opcodes: mark more insns as A_UNUSED and/or E_UNUSED 2025-07-21 16:14:46 +02:00
Mikael Pettersson
3f80870025 pdp10_opcodes: use BASIC format with separate flag for A_UNUSED insns
This matches reality better: A is may-be-zero (preferred) not must-be-zero.
2025-07-21 15:56:23 +02:00
Mikael Pettersson
1e8dc3468f pdp10_opcodes: fix typos in comments 2025-07-21 14:11:19 +02:00
Mikael Pettersson
c47d61b550 rebar3: bump to 3.25.0 2025-05-24 16:49:06 +02:00
Mikael Pettersson
52ad811aa0 pdp10_opcodes: fix dialyzer error with OTP-28.0-rc3 2025-04-20 12:19:50 +02:00
Mikael Pettersson
1f636bff4f rebar3: bump to 3.24.0 2025-04-19 23:46:50 +02:00
Mikael Pettersson
63746bbc93 pdp10_elf36.hrl: sync with binutils-2.44 ELF definitions 2025-04-19 23:43:00 +02:00
Mikael Pettersson
4edce6a058 pdp10_elf36.hrl: sync with binutils-2.43 ELF definitions 2025-04-19 19:56:32 +02:00
Mikael Pettersson
80e12bf0c8 pdp10_elf36.hrl: add missing AT_HWCAP2 macro 2025-04-19 15:59:20 +02:00
Mikael Pettersson
829dddbe69 pdp10_elf36.hrl: sync with binutils-2.42 ELF definitions 2025-04-19 15:57:07 +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