This commit is contained in:
Folkert van Heusden 2023-03-26 21:46:52 +02:00
parent 3b558c621a
commit 4c7fcb4854
51 changed files with 147 additions and 37 deletions

View file

@ -1,3 +1,6 @@
# (C) 2018-2023 by Folkert van Heusden
# Released under MIT license
project(PDP-11) project(PDP-11)
cmake_minimum_required(VERSION 3.9) cmake_minimum_required(VERSION 3.9)

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <Adafruit_NeoPixel.h> #include <Adafruit_NeoPixel.h>
#include <stdio.h> #include <stdio.h>
#include <termios.h> #include <termios.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <Arduino.h> #include <Arduino.h>
#include <vector> #include <vector>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <string> #include <string>
#include "disk_backend.h" #include "disk_backend.h"

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#pragma once #pragma once
#if defined(ESP32) #if defined(ESP32)

View file

@ -1,5 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#include <Arduino.h> #include <Arduino.h>
#include <ArduinoJson.h> #include <ArduinoJson.h>
#include <atomic> #include <atomic>

View file

@ -1,3 +1,6 @@
# (C) 2018-2023 by Folkert van Heusden
# Released under MIT license
[platformio] [platformio]
default_envs = ESP32 default_envs = ESP32
src_dir = . src_dir = .

View file

@ -1,5 +1,6 @@
// (C) 2018-2022 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

3
bus.h
View file

@ -1,5 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#pragma once #pragma once
// #define SYSTEM_11_44 // #define SYSTEM_11_44

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <chrono> #include <chrono>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#pragma once #pragma once
#include <atomic> #include <atomic>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <poll.h> #include <poll.h>
#include <stdio.h> #include <stdio.h>
#include <ncurses.h> #include <ncurses.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <mutex> #include <mutex>
#include <ncurses.h> #include <ncurses.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <poll.h> #include <poll.h>
#include <stdio.h> #include <stdio.h>
#include <termios.h> #include <termios.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <termios.h> #include <termios.h>
#include "console.h" #include "console.h"

View file

@ -1,5 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

3
cpu.h
View file

@ -1,5 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#pragma once #pragma once
#include <assert.h> #include <assert.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include "bus.h" #include "bus.h"
#include "console.h" #include "console.h"
#include "cpu.h" #include "cpu.h"

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include "bus.h" #include "bus.h"
#include "console.h" #include "console.h"

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include "disk_backend.h" #include "disk_backend.h"
disk_backend::disk_backend() disk_backend::disk_backend()

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#pragma once #pragma once
#include <stdint.h> #include <stdint.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <string> #include <string>
#include "disk_backend.h" #include "disk_backend.h"

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <string> #include <string>
#include <sys/types.h> #include <sys/types.h>

View file

@ -1,4 +1,6 @@
// (C) 2018 by folkert@vanheusden.com, released under AGPL 3.0 // (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>

View file

@ -1,2 +1,4 @@
// (C) 2018 by folkert@vanheusden.com, released under AGPL 3.0 // (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
[[ noreturn ]] void error_exit(bool sys_err, const char *format, ...); [[ noreturn ]] void error_exit(bool sys_err, const char *format, ...);

5
gen.h
View file

@ -1,5 +1,6 @@
// (C) 2018-2022 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#pragma once #pragma once
typedef enum { EVENT_NONE = 0, EVENT_HALT, EVENT_INTERRUPT, EVENT_TERMINATE } stop_event_t; typedef enum { EVENT_NONE = 0, EVENT_HALT, EVENT_INTERRUPT, EVENT_TERMINATE } stop_event_t;

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <unistd.h> #include <unistd.h>
#include "console.h" #include "console.h"

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <atomic> #include <atomic>
#include <thread> #include <thread>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string> #include <string>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <optional> #include <optional>
#include <stdint.h> #include <stdint.h>
#include <string> #include <string>

View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <fcntl.h> #include <fcntl.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>

3
log.h
View file

@ -1,3 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#pragma once #pragma once
#include <string> #include <string>

View file

@ -1,5 +1,6 @@
// (C) 2018-2022 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#include <atomic> #include <atomic>
#include <signal.h> #include <signal.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,5 +1,6 @@
// (C) 2018 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#if defined(ESP32) #if defined(ESP32)
#include <Arduino.h> #include <Arduino.h>
#endif #endif

View file

@ -1,5 +1,6 @@
// (C) 2018 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#pragma once #pragma once
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
// this program is in the public domain // (C) 2018-2023 by Folkert van Heusden
// written by Folkert van Heusden <mail@vanheusden.com> // Released in the public domain
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,5 +1,6 @@
// (C) 2018-2022 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

3
rk05.h
View file

@ -1,5 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#pragma once #pragma once
#include <atomic> #include <atomic>

View file

@ -1,5 +1,6 @@
// (C) 2022 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

5
rl02.h
View file

@ -1,5 +1,6 @@
// (C) 2023 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#pragma once #pragma once
#include <atomic> #include <atomic>

View file

@ -1,4 +1,6 @@
// (C) 2018 by folkert@vanheusden.com, released under AGPL 3.0 // (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#include <algorithm> #include <algorithm>
#include <assert.h> #include <assert.h>
#include <ncursesw/curses.h> #include <ncursesw/curses.h>

View file

@ -1,4 +1,6 @@
// (C) 2018 by folkert@vanheusden.com, released under AGPL 3.0 // (C) 2018-2023 by Folkert van Heusden
// Released under MIT license
#pragma once #pragma once
#include <string> #include <string>

View file

@ -1,5 +1,6 @@
// (C) 2018 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>

View file

@ -1,5 +1,6 @@
// (C) 2018 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#pragma once #pragma once
#include <stdint.h> #include <stdint.h>

View file

@ -1,5 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// // Released under Apache License v2.0 // Released under MIT license
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>

3
tty.h
View file

@ -1,5 +1,6 @@
// (C) 2018-2023 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#pragma once #pragma once
#include <atomic> #include <atomic>

View file

@ -1,8 +1,10 @@
// (C) 2018-2022 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#if defined(ESP32) #if defined(ESP32)
#include <Arduino.h> #include <Arduino.h>
#endif #endif
#include <errno.h> #include <errno.h>
#include <pthread.h> #include <pthread.h>
#include <stdarg.h> #include <stdarg.h>

View file

@ -1,5 +1,6 @@
// (C) 2018-2022 by Folkert van Heusden // (C) 2018-2023 by Folkert van Heusden
// Released under Apache License v2.0 // Released under MIT license
#include <stdint.h> #include <stdint.h>
#include <string> #include <string>
#include <vector> #include <vector>