PDP-11/70 emulator
Find a file
2024-05-16 23:00:58 +02:00
.github submodules 2024-05-16 17:53:38 +02:00
arduinojson@071f718473 replacing libjansson by arduinojson 2024-05-13 20:50:03 +02:00
BIC list of files 2024-05-01 23:26:24 +02:00
ESP32 rewrote DC11 to use comm 2024-05-16 23:00:58 +02:00
json verify MMR* registers 2024-04-12 18:04:03 +02:00
RP2040 missing files for RP2040 target (broken!) 2024-05-10 16:58:27 +02:00
tests comments 2024-04-23 21:48:45 +02:00
.gitignore RL02 verification code 2024-04-23 21:30:34 +02:00
.gitmodules replacing libjansson by arduinojson 2024-05-13 20:50:03 +02:00
.lgtm.yml meta 2022-03-21 20:45:10 +01:00
breakpoint.cpp breakpoints 2024-04-16 10:52:12 +02:00
breakpoint.h breakpoints 2024-04-16 10:52:12 +02:00
breakpoint_and.cpp breakpoints 2024-04-16 10:52:12 +02:00
breakpoint_and.h breakpoints 2024-04-16 10:52:12 +02:00
breakpoint_memory.cpp typo in format string 2024-04-28 22:36:19 +02:00
breakpoint_memory.h memory breakpoint 2024-04-16 14:22:06 +02:00
breakpoint_or.cpp breakpoints 2024-04-16 10:52:12 +02:00
breakpoint_or.h breakpoints 2024-04-16 10:52:12 +02:00
breakpoint_parser.cpp memory breakpoint 2024-04-16 14:22:06 +02:00
breakpoint_parser.h breakpoints 2024-04-16 10:52:12 +02:00
breakpoint_register.cpp tweaks 2024-04-27 09:36:48 +02:00
breakpoint_register.h psw breakpoint 2024-04-16 20:10:02 +02:00
bus.cpp need to restart KW11-L after cpu as KW11-L needs the cpu 2024-05-16 10:17:31 +02:00
bus.h WIP 2024-05-16 09:50:36 +02:00
CMakeLists.txt comm* added to project 2024-05-16 22:22:54 +02:00
comm.cpp copyrights 2024-05-16 21:46:34 +02:00
comm.h rewrote DC11 to use comm 2024-05-16 23:00:58 +02:00
comm_posix_tty.cpp POSIX TTY 2024-05-16 22:22:29 +02:00
comm_posix_tty.h POSIX TTY 2024-05-16 22:22:29 +02:00
comm_tcp_socket.cpp error handling 2024-05-16 22:40:45 +02:00
comm_tcp_socket.h rewrote DC11 to use comm 2024-05-16 23:00:58 +02:00
console.cpp show device state 2024-05-10 20:15:55 +02:00
console.h show device state 2024-05-10 20:15:55 +02:00
console_ncurses.cpp restructured mmu code 2024-05-11 00:09:29 +02:00
console_ncurses.h Call to virtual method ... during construction bypasses virtual dispatch (scan-build / clang analyzer) 2024-04-28 01:51:26 +02:00
console_posix.cpp clean-up 2024-05-10 23:25:24 +02:00
console_posix.h clean-up 2024-05-10 23:25:24 +02:00
cpu.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
cpu.h fixes for serialization 2024-05-16 10:14:48 +02:00
dc11.cpp rewrote DC11 to use comm 2024-05-16 23:00:58 +02:00
dc11.h rewrote DC11 to use comm 2024-05-16 23:00:58 +02:00
debugger.cpp rewrote DC11 to use comm 2024-05-16 23:00:58 +02:00
debugger.h TRACE() 2024-05-04 19:23:40 +02:00
device.cpp missing file 2024-05-10 23:29:36 +02:00
device.h KW11-L state 2024-05-10 20:35:35 +02:00
disk_backend.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
disk_backend.h fixes for serialization 2024-05-16 10:14:48 +02:00
disk_backend_file.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
disk_backend_file.h fixes for serialization 2024-05-16 10:14:48 +02:00
disk_backend_nbd.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
disk_backend_nbd.h fixes for serialization 2024-05-16 10:14:48 +02:00
disk_device.h Call to virtual method ... during construction bypasses virtual dispatch (scan-build / clang analyzer) 2024-04-28 01:51:26 +02:00
div.py remove any \r or \n 2024-04-04 21:22:35 +02:00
error.cpp compiles 2023-04-07 23:10:26 +02:00
error.h license 2023-03-26 21:47:42 +02:00
gcovr-json-diff.py coverage compare tool 2022-03-01 15:53:49 +01:00
gen.h libjansson is no more used 2024-05-16 17:56:03 +02:00
kw11-l.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
kw11-l.h fixes for serialization 2024-05-16 10:14:48 +02:00
LICENSE license date 2024-05-01 23:17:43 +02:00
loaders.cpp show device state 2024-05-10 20:15:55 +02:00
loaders.h casing 2024-04-26 16:01:31 +02:00
log.cpp clean-up 2024-05-10 23:25:24 +02:00
log.h clean-up 2024-05-13 19:38:07 +02:00
main.cpp rewrote DC11 to use comm 2024-05-16 23:00:58 +02:00
memory.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
memory.h fixes for serialization 2024-05-16 10:14:48 +02:00
mingw64.cmake restructured 2023-03-27 13:02:46 +02:00
mmu.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
mmu.h fixes for serialization 2024-05-16 10:14:48 +02:00
raw_to_simh_bin.cpp license 2023-03-26 21:47:42 +02:00
README.md meta 2024-05-16 13:40:40 +02:00
rk05.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
rk05.h fixes for serialization 2024-05-16 10:14:48 +02:00
rl02.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
rl02.h fixes for serialization 2024-05-16 10:14:48 +02:00
terminal.cpp license 2023-03-26 21:47:42 +02:00
terminal.h license 2023-03-26 21:47:42 +02:00
tm-11.cpp show device state 2024-05-10 20:15:55 +02:00
tm-11.h show device state 2024-05-10 20:15:55 +02:00
tty.cpp fixes for serialization 2024-05-16 10:14:48 +02:00
tty.h fixes for serialization 2024-05-16 10:14:48 +02:00
utils.cpp clean-up 2024-05-10 23:25:24 +02:00
utils.h show device state 2024-05-10 20:15:55 +02:00
win32.cpp restructured 2023-03-27 13:02:46 +02:00
win32.h restructured 2023-03-27 13:02:46 +02:00

KEK

Kek is a DEC PDP-11 (11/70) emulator capable of running UNIX-v7.

You need to retrieve the git repository with the --recursive switch for the git command:

git clone --recursive https://github.com/folkertvanheusden/kek

To build for e.g. linux:

mkdir build
cd build
cmake ..
make

Required:
* libncursesw5-dev

To build for e.g. windows:

mkdir build-win32
cd build-win32
cmake -DCMAKE_TOOLCHAIN_FILE=../mingw64.cmake ..
make

To run an RK05 disk image:

./kek -R filename.rk -b 2> /dev/null

To run an RL02 disk image:

./kek -r filename.rk -b 2> /dev/null

To run a tape image:

./kek -T filename.bin -b 2> /dev/null

When you run UNIX 7, you can (if your system has enough RAM - use an ESP32 with 2 MB PSRAM or more) run multi-user via the DC-11 emulation. Note that UNIX 7 starts in single user mode first; press ctrl+d to switch to multi user (recognizable by the login-prompt). Also make sure to configure networking ('startnet') to be able to connect (using telnet) to the DC-11 ports (TCP port 1101 upto and including 1104).

ESP32

The ESP32 version needs platformio to be build.

cd ESP32
pio run -t upload
pio run -t uploadfs

That should build & upload it to a connected ESP32.

Wiring of SDCARD (or use disk-images exported via NBD over wifi using nbdkit (because of older NBD protocol implementation)):

  • MISO: 19
  • MOSI: 23
  • SCK : 18
  • SS : 5
  • and of course connect VCC/GND of the SD-card

Heart beat LED:

  • pin 25

Wiring of the MAX232 connection:

  • TX : 17
  • RX : 16 Note that you need to use different pins for the MAX232 connection when you want to use the PSRAM of the ESP32.

Raspberry PI PICO / RP2040

Wiring of SDCARD:

  • MISO: 16
  • MOSI: 19
  • SCK : 18
  • SS : 17
  • and of course connect VCC/GND of the SD-card

The RP2040 version needs platformio to be build.

cd RP2040
pio run

Then copy RP2040/.pio/build/BUILD_FOR_RP2040/firmware.uf2 to the PICO.

SHA2017-badge

This procedure will remove the default micropython environment. Maybe you can undo that, but I have not tried that.

  • esptool.py erase_flash

  • pio run -e SHA2017-badge

  • esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 ./.pio/build/ESP32-wemos/bootloader.bin

  • pio run -e SHA2017-badge -t upload

After this, you can connect a serial terminal to /dev/ttyUSB0 at 115k2 bps.

more info

For more info: https://vanheusden.com/emulation/PDP-11/kek/

thanks

Thanks a lot to Neil Webber for his help and for his python PDP emulator (which allowed me to compare disassembly of runs). Neil's emulator can be found at https://github.com/outofmbufs/python-pdp11-emulator

Kek is released under MIT license.

Folkert van Heusden