95 Commits

Author SHA1 Message Date
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
Mikael Pettersson
eeb251944b pdp10-elf36.h: remove old EM_MOXIE definition, add EM_BPF 2018-05-05 18:21:42 +02:00
Mikael Pettersson
79fa45ce3a sim: new tool (stub for now) 2018-04-28 17:44:04 +02:00
Mikael Pettersson
7fde78a4c6 doc/Booting.txt: fix typos 2017-08-02 17:38:50 +02:00
Mikael Pettersson
24cf9254f1 doc/Timers.txt: fix typo 2017-08-02 17:25:38 +02:00
Mikael Pettersson
94c28c504a doc/Interrupts.txt: fix typos 2017-08-02 17:14:42 +02:00
Mikael Pettersson
ab06ac512c doc/pdp10-abi.txt: correct reference to the thread register 2017-08-02 16:47:14 +02:00
Mikael Pettersson
824b8a877e doc/Paging.txt: fix some typos 2017-08-02 16:09:58 +02:00
Mikael Pettersson
ba6485eb1b doc: add notes on boot sequences for different PDP10 generations 2015-09-22 23:29:07 +02:00
Mikael Pettersson
4bf86f12d0 doc: a notes on Console TTY for different PDP10 generations 2015-09-11 19:39:27 +02:00
Mikael Pettersson
8c377bba69 doc: add missing Copyright headers 2015-09-08 22:36:48 +02:00
Mikael Pettersson
2be3c70928 doc: add notes on PDP10 interval timers 2015-09-08 22:25:43 +02:00
Mikael Pettersson
d5cc68a61c doc/Paging.txt: add note about documentation issues wrt Jupiter paging 2015-09-08 22:24:47 +02:00
Mikael Pettersson
68472bfffa add notes on paging structures for different PDP10 generations 2015-09-06 18:06:58 +02:00
Mikael Pettersson
a6b78a905d doc: add notes on the PDP10 interrupt architecture 2015-08-30 18:21:55 +02:00
Mikael Pettersson
e4a393cbc4 include/pdp10-elf36.h: updates to match 2015-07-23 gABI draft
added DT_SYMTAB_SHNDX, 14 EM_ entries, and 2 ELFOSABI_ entries
2015-07-25 19:24:23 +02:00
Mikael Pettersson
f732a75ba0 doc/pdp10-abi.txt: many updates
- list 'Extended Addressing' as a reference document
- add Function Calling Sequence, Registers, Stack Frame, Parameter Passing
- add Operating System Interface, Virtual Address Space, Page Size, Shared Libraries
  (may have to be moved to a later section), Virtual Address Assignments with
  three different code models
- add stubs for many more sections to fill in
2015-05-18 22:45:19 +02:00
Mikael Pettersson
ea30595015 doc/pdp10-abi.txt: finish Processor Architecture and Data Representation sections 2015-05-10 22:37:28 +02:00
Mikael Pettersson
81989cd786 doc/pdp10-abi.txt: start work on psABI document 2015-05-07 23:35:07 +02:00
Mikael Pettersson
3a06585426 TODO: update 2015-05-01 14:23:52 +02:00
Mikael Pettersson
47502d2bb7 as: add support for .ident directives
- token.def: enable T_DOT_IDENT
- tunit.h: add S_DOT_IDENT and make it share attributes with S_DOT_FILE,
  describe available section types, add tunit_strtab_section_enter(),
  rearrange declarations
- tunit.c: implement tunit_strtab_section_enter()
- parse.c: generalize .file parser, use it also for .ident
- input.c: handle S_DOT_IDENT, lookup or create .comment strtab section,
  append given string literal to that section
2015-05-01 14:14:38 +02:00
Mikael Pettersson
a5a68a70b7 as/tunit.c: check for NULL before applying container_of() 2015-05-01 14:08:12 +02:00
Mikael Pettersson
772d5e4061 as: define and use container_of() 2015-04-27 22:36:58 +02:00
Mikael Pettersson
a7c47b4013 as: move strtab from output to tunit 2015-04-27 22:02:53 +02:00
Mikael Pettersson
70768a829c as: allow output_section() to work on strtabs
- add optional ->output() method to struct section
- make output_section() use ->output() if present
- make strtab_init() set up ->output
- change strtab_write() into a trivial wrapper for output_section()
2015-04-26 22:08:37 +02:00
Mikael Pettersson
966059fbb6 as/output.c: use section_init() to initialize the fake section0 2015-04-26 20:36:30 +02:00
Mikael Pettersson
8f2faeea93 as/output.c: simplify handling of strtab sections
- embed a strtab's associated section in the strtab itself
- change append_section() to enter name before reading dot
- synthesize .shstrtab with append_section(), remove old kludge
2015-04-25 20:10:48 +02:00
Mikael Pettersson
9260af712f as: support C-style /*...*/ comments 2015-04-21 21:35:36 +02:00
Mikael Pettersson
bedc35abc5 as: support line-comments starting with '#' 2015-04-20 23:07:27 +02:00
Mikael Pettersson
b0aaba8f9a pdp10-opcodes: complete rewrite 2015-04-19 18:28:27 +02:00
Mikael Pettersson
af1fd536c2 pdp10-tools: Add GPL License and a README, remove old 'as' prototype 2015-04-19 18:27:43 +02:00
Mikael Pettersson
68a213eb76 as: add some test cases under test/ 2015-04-06 16:34:22 +02:00
Mikael Pettersson
099eb14679 as/output.c: don't store dummy values in section->image
remove ->image == NULL test in append_section, output_shdr
don't store dummy value in section_strtab.image or section_shstrtab.image
hoist symtab declaration to output() top-level, don't store it in
section_symtab.image
drop fixmes at assignments to .dot as they are Ok
2015-04-05 16:14:59 +02:00
Mikael Pettersson
ade65971fa as: change section image from a pdp_uint36_t arrary to a pdp10_uint9_t array 2015-03-03 21:20:29 +00:00