128 Commits

Author SHA1 Message Date
Mikael Pettersson
c150845358 pdp10_elf36: start rewrite in Erlang, move Elf36 I/O operations from nm to here 2019-08-22 20:41:40 +02:00
Mikael Pettersson
54cb1c0a94 pdp10_extint: rewrite in Erlang 2019-08-22 20:41:40 +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
5e34a16dec od: use error:format/1, remove pointless check of skip_bytes/4 return value 2019-08-16 17:57:25 +02:00
Mikael Pettersson
f2efa4979f 8to9: use error:format/1, break long line 2019-08-16 17:42:07 +02:00
Mikael Pettersson
369668d362 error: new module to format error terms for diagnostics 2019-08-16 15:06:59 +02:00
Mikael Pettersson
887fdf0d93 format_error/1 implementations: remove lists:flatten/1 calls, correct return value spec 2019-08-16 15:06:25 +02:00
Mikael Pettersson
2b1022dd03 pdp10_stdio: add format_error/1, tag own and file errors with originating module 2019-08-14 21:24:07 +02:00
Mikael Pettersson
9af4555d3e getopt: add format_error/1, tag error reasons with ?MODULE 2019-08-14 21:24:02 +02:00
Mikael Pettersson
880eba4b76 strtol: add format_error/1, tag error reasons with ?MODULE 2019-08-14 21:23:56 +02:00
Mikael Pettersson
180fcbc1b9 change strtol:parse/2 to return a standard {ok,Result} 2-tuple 2019-08-14 17:57:27 +02:00
Mikael Pettersson
ce0595ef44 as: rewrite in Erlang, initial version 2019-08-13 19:21:57 +02:00
Mikael Pettersson
c184c9b4a8 pdp10_elf36.hrl: sync with binutils-2.32 ELF definitions 2019-07-31 17:23:21 +02:00
Mikael Pettersson
fa0d71dd5a pdp10-elf36.h: sync with binutils-2.32 ELF definitions 2019-07-31 16:48:17 +02:00
Mikael Pettersson
730bffc28b pdp10_opcodes: rewrite in Erlang, resolve ambiguities 2019-07-30 18:24:38 +02:00
Mikael Pettersson
690a7c86e8 ar: rewrite in Erlang, initial version 2019-07-20 19:49:23 +02:00
Mikael Pettersson
cc709a7e1c pdp10_stdio.erl: correct return value in fopen failure case 2019-07-20 19:49:23 +02:00
Mikael Pettersson
512f2e452d ar.c: correct strftime() format for ar -tv 2019-07-20 19:49:23 +02:00
Mikael Pettersson
a05674438f pdp10_stdio.erl: rename fwrite/2 to fputs/2 2019-07-20 19:49:23 +02:00
Mikael Pettersson
91fbdd293d pdp10-ar.h: update links, fix typo, tweak struct field descriptions 2019-03-01 17:59:55 +01:00
Mikael Pettersson
964eed2f31 nm: rewrite in Erlang 2019-02-24 13:39:55 +01:00
Mikael Pettersson
b37c24d009 pdp10_stdio:fseek/2: correct -spec 2019-02-24 13:39:55 +01:00
Mikael Pettersson
d394dc856a pdp10_stdio.erl: fix typo and grammar 2019-02-10 22:20:09 +01:00
Mikael Pettersson
35ec8bfc13 pdp10-stdio.c: fix typo and grammar 2019-02-10 22:20:09 +01:00
Mikael Pettersson
1f37143922 erlang/Makefile: type -p usage requires bash 2019-02-02 17:09:55 +01:00
Mikael Pettersson
fbd15cc2ba pdp10_elf36.hrl: sync with binutils-2.31.1 ELF definitions 2019-01-27 21:09:32 +01:00
Mikael Pettersson
56a4e88356 pdp10-elf36.h: sync with binutils-2.31.1 ELF definitions 2019-01-27 21:09:04 +01:00
Mikael Pettersson
12a96bd910 pdp10_elf36.hrl: Erlang version of pdp10-elf36.h 2019-01-27 17:47:49 +01:00
Mikael Pettersson
0e363453b0 pdp10_stdint.hrl: Erlang version of pdp10-stdint.h 2019-01-27 17:46:38 +01:00
Mikael Pettersson
c0eabb3283 pdp10-elf36.h: cleanups 2019-01-27 17:45:23 +01:00
Mikael Pettersson
a005109a33 change licence of Erlang bits to the GPL, matching the rest of the project 2018-12-26 17:51:03 +01:00
Mikael Pettersson
b03e167eca od: enable long command-line options 2018-12-26 13:41:47 +01:00
Mikael Pettersson
ea4861ad33 getopt: correct parsing of options with optional arguments 2018-12-26 13:40:32 +01:00
Mikael Pettersson
2e07d7945e od: rewrite in Erlang 2018-12-26 11:04:16 +01:00
Mikael Pettersson
0f5fb79ddd implement strtol clone for Erlang 2018-12-26 11:03:05 +01:00
Mikael Pettersson
8f7f62a23d od: remove -S alias for -t d4, correct octal output, fix typo in comment 2018-12-26 11:01:58 +01:00
Mikael Pettersson
96be8c9d08 erlang: add Makefile and rebar.config for building with rebar3 2018-12-22 17:46:08 +01:00
Mikael Pettersson
980addf20b 8to9: rewrite in Erlang 2018-12-22 17:45:06 +01:00
Mikael Pettersson
5d25a3ef8a lib: add .app.src for OTP and rebar compatibility 2018-12-22 17:44:07 +01:00
Mikael Pettersson
48de55782f implement runtime support library for Erlang programs (escripts) 2018-12-22 17:42:39 +01:00
Mikael Pettersson
5a2f9bb6a2 implement getopt clone for Erlang 2018-12-22 17:40:10 +01:00
Mikael Pettersson
6374e23a86 pdp10_stdio: rewrite in Erlang, handle non-seekable files better 2018-12-22 17:38:47 +01:00
Mikael Pettersson
e72ed3fff2 pdp10-stdio: fix grammar in comment 2018-12-22 17:25:33 +01:00
Mikael Pettersson
9fbacc2a32 sim: minor updates 2018-12-22 17:24:29 +01:00
Mikael Pettersson
5104bf8847 sim: add effective address calculation 2018-05-08 22:42:06 +02:00
Mikael Pettersson
abfc0ef04a sim: add core definitions 2018-05-08 22:41:24 +02:00
Mikael Pettersson
54ea34d560 pdp10-arith: add pdp10_sext_uint18() 2018-05-08 22:39:18 +02:00
Mikael Pettersson
5e2ad04250 sim: add (virtual) memory emulation 2018-05-05 18:26:22 +02:00