Commit graph

54 commits

Author SHA1 Message Date
folkert van heusden
4799cba2de
Revert "d/i index 0 for i is more logical? because it is default mode."
This reverts commit cf420ca726.

=> breaks at least the unix v6 bootloader
2023-03-22 13:06:33 +01:00
folkert van heusden
cf420ca726
d/i index 0 for i is more logical? because it is default mode. 2023-03-21 21:07:36 +01:00
folkert van heusden
0336c0c66c
source layout 2023-03-20 21:16:11 +01:00
folkert van heusden
ce730c6ea1
microprogram break register 2023-03-20 14:23:32 +01:00
folkert van heusden
2bf8b92217
0177764: system id 2023-03-20 09:58:56 +01:00
folkert van heusden
35eed8e117
MTP./MFP. trap on odd addressing 2023-03-19 20:57:07 +01:00
folkert van heusden
daf5e27842
console switches/leds work 2023-03-19 15:33:39 +01:00
folkert van heusden
b7512ae3cd
show console LEDs 2023-03-19 15:05:00 +01:00
folkert van heusden
a935fe44d7
use d-space where required 2023-03-18 14:45:44 +01:00
folkert van heusden
08d8c75d58 - readPhysical
- initialize psw to 0 to match pypdp (for diff)
- SUB instruction V-flag may have been incorrect
- MFPI/MTPI flags
- MFPI readPhysical
- bootloader from pypdp (for diff)
2023-03-12 22:32:53 +01:00
folkert van heusden
d68a5af55e writePhysical 2023-03-11 21:54:18 +01:00
folkert van heusden
3ef8bd930d Added:
* calculate data/instruction physical addresses from a virtual address
	memory_addresses_t calculate_physical_address(const int run_mode, const uint16_t a);

* check if a 'memory_address_t'-address would cause a fault
	void check_address(const bool trap_on_failure, const bool is_write, const memory_addresses_t & addr, const bool word_mode, const bool is_data, const int run_mode);
2023-03-11 21:13:46 +01:00
folkert van heusden
2fd1da58bb Merge branch 'master' into d_i 2022-11-10 09:13:22 +01:00
folkert van heusden
0d7cbe3da9 replaced addresses by defines 2022-06-28 17:58:04 +02:00
folkert van heusden
55ad46c55c Code-cleanup (PAR/PDR read/write helper methods) 2022-06-28 16:31:17 +02:00
folkert van heusden
88933e303c Console switches configurable on command line 2022-06-19 15:39:46 +02:00
folkert van heusden
51670ef199 double traps
odd addressing trap
2022-06-18 12:10:23 +02:00
folkert van heusden
9d55740a0f SR0 errors by KKTBD0 fixed 2022-06-18 08:48:29 +02:00
folkert van heusden
015ef244b8 Merge branch 'master' into d_i 2022-06-18 08:05:40 +02:00
folkert van heusden
4b788bb620 Set bit 12 to 1 if trap 2022-06-17 20:48:16 +02:00
folkert van heusden
89bca61148 Bugfix: must look at bits 15/14/13 of MMR0 2022-06-17 20:18:28 +02:00
folkert van heusden
c9ff07cd4b let write not return the value written 2022-06-17 20:00:35 +02:00
folkert van heusden
81dc6d8924 trap: read from D-space 2022-06-13 21:53:59 +02:00
folkert van heusden
6449ef6c8c Merge branch 'master' into d_i 2022-06-12 22:16:15 +02:00
folkert van heusden
6e17f4b747 The disassembler uses peekWord() which would do a real read on i/o
devices. That is now replaced by a return 012345 so that the (emulated)
devices don't get confused (e.g. the tty would miss characters).
2022-06-12 21:00:26 +02:00
folkert van heusden
c9fa383bfa bus is now enhanced for d/i space 2022-06-12 20:02:05 +02:00
folkert van heusden
ad7aca8876 Prepare calculate_physical_address for D/I. 2022-06-12 15:52:41 +02:00
folkert van heusden
70543edbb8 debugger: mmudump 2022-06-12 15:46:43 +02:00
folkert van heusden
7a9ccc651b logging facility - remove \n & reduce logging when not needed 2022-06-11 09:44:00 +02:00
folkert van heusden
160ffe5c26 connect rl02 to bus 2022-06-09 22:19:46 +02:00
folkert van heusden
94181e94bd KW11-L 2022-06-09 19:10:22 +02:00
folkert van heusden
1673548c37 MMR1/2 2022-04-13 23:38:46 +02:00
folkert van heusden
1d23b5f5bc page modes / debugger tweaks 2022-04-13 17:49:15 +02:00
folkert van heusden
4bf488212b console switches: debug-mode in -d 2022-04-13 11:18:56 +02:00
folkert van heusden
17ab6d8e67 disassembler: do not trigger trap 2022-04-11 14:39:03 +02:00
folkert van heusden
ddb74b8f38 explicit 'use_prev' for bus::write() 2022-04-11 14:35:33 +02:00
folkert van heusden
f8b8bc45e6 explicit 'use_prev' for bus::read() 2022-04-11 14:32:40 +02:00
folkert van heusden
15e0b95017 debug 2022-04-10 14:41:28 +02:00
folkert van heusden
89494aec4e code reduction 2022-04-10 12:44:42 +02:00
folkert van heusden
7ad20f2705 make sure only the trap/interrupt vectors are retrieved from kernel space, not general reads 2022-03-27 04:29:36 +02:00
folkert van heusden
3248df3e87 RESET 2022-03-25 09:59:40 +01:00
folkert van heusden
1d73211781 moved panel code into console-class 2022-03-23 15:39:25 +01:00
folkert van heusden
ba1bcdbe15 unmapped memory access for rk05 2022-03-22 21:32:37 +01:00
folkert van heusden
3b46f29ab1 esp32 compile fix 2022-03-22 13:19:32 +01:00
folkert van heusden
8f5a05d0d2 page-set per run-mode 2022-03-21 22:31:27 +01:00
folkert van heusden
5db4e70b6c keep track of MMR0-3 2022-03-21 19:35:55 +01:00
folkert van heusden
48be750ef3 compile fix 2022-03-21 12:21:00 +01:00
folkert van heusden
be738f9652 cleanup 2022-03-20 22:51:45 +01:00
folkert van heusden
b470d2ad41 ncurses: show switch register / clean terminate 2022-03-19 16:37:20 +01:00
folkert van heusden
a15dcc47c0 POC works 2022-03-19 12:45:01 +01:00