Skip to content

Commit a09e7f4

Browse files
committed
Rename the files to be more descriptive
1 parent 8258731 commit a09e7f4

18 files changed

+53
-70
lines changed

Makefile

Lines changed: 17 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,35 @@
1-
# make a PDP-8 emulator
21
#
3-
# Instructions:
4-
#
5-
# 1, configure your emulator by editing this file, as directed below.
6-
# 2, make.
7-
# 3, make coredump if you want symbolic dumps of saved memory images.
8-
# 4, make coremake if you want to convert RIM binaries to memory images.
9-
# 5, make clean to remove compilation temporaries.
10-
11-
12-
##########################################################################
13-
#
14-
# Machine Configuration Section:
15-
#
16-
# In effect, the skeleton of the emulator is an omnibus, into which you
17-
# plug a number of option boards for I/O devices and other machine
18-
# components.
19-
#
20-
# RULE: To select an option, follow the directions.
21-
# If, on real hardware, you'd have to jumper something on the
22-
# circuit board, then you must edit the source file for the
23-
# option and select the jumperable feature there.
24-
25-
26-
#---- exactly one of the following definition pairs must be uncommented
27-
28-
# KK8E -- the PDP-8/E CPU, M8300, M8310, M8320
29-
#cpu = kk8e.o
30-
#CPU = -DKK8E
31-
322
# KK8E with debug support -- the above hardware with an added trace package
33-
cpu = kk8e.o debug.o
34-
CPU = -DKK8E -DDEBUG
35-
36-
37-
#---- exactly one of the following definition triplets must be uncommented
38-
3+
#
394
# KC8M -- PDP-8/M Simple (non-visual) TTY oriented control panel
40-
console = kc8m.o
41-
CONSOLE = -DKC8M
42-
conslib =
43-
44-
45-
#---- any of the following internal options may be selected by including
46-
# their names in the definitions of intern and INTERN.
47-
5+
#
486
# KM8E -- Extended Memory and Time Share Option, M837
497
# without this option, the machine may only address 4K of memory.
508
# with this option, the machine may address 32K of memory.
51-
9+
#
5210
# DK8E -- Real-Time Clock, M882 or M8830
5311
# the interrupt rate is selectable by editing dk8e.c
54-
55-
intern = km8e.o dk8e.o
56-
INTERN = -DKM8E -DDK8E
57-
58-
59-
#---- any of the following external options may be selected by including
60-
# their names in the defintions of extern and EXTERN.
61-
12+
#
6213
# KL8E -- Asynchronous Console Interface, M8650
6314
# the baud rate is selectable by editing kl8e.c
64-
15+
#
6516
# PC8E -- Paper-Tape Reader-Punch, M840
17+
#
18+
# CR8F -- CR8F Card reader and Control
19+
#
20+
# RX8E -- RX01 diskette drive, M8357 interface
21+
#
6622

23+
cpu = main.o debug.o
24+
CPU = -DKK8E -DDEBUG
6725

68-
# CR8F -- CR8F Card reader and Control
26+
console = frontpanel-kc8m.o
27+
CONSOLE = -DKC8M
6928

70-
# RX8E -- RX01 diskette drive, M8357 interface
29+
intern = mem-km8e.o rtc-dk8e.o
30+
INTERN = -DKM8E -DDK8E
7131

72-
extern = kl8e.o pc8e.o cr8f.o rx8e.o
32+
extern = tty-kl8e.o hstape-pc8e.o card-cr8f.o floppy-rx8e.o
7333
EXTERN = -DKL8E -DPC8E -DCR8F -DRX8E
7434

7535

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,30 @@
1-
# Console-based PDP-8 emulator
1+
# Console-based PDP-8 emulator ![C/C++ CI](https://github.com/SmallRoomLabs/pdp8emu/workflows/C/C++%20CI/badge.svg)
2+
23
This PDP8 Emulator was originally written by Douglas W. Jones at the University of Iowa back in 1995.
34

45
It has now been converted from K&R style real UNIX targeted code into a more modern C99 compatible POSIX codebase with a few bugs and "syntax errors" fixed
56

6-
![C/C++ CI](https://github.com/SmallRoomLabs/pdp8emu/workflows/C/C++%20CI/badge.svg)
77

8+
## Files
9+
```
10+
original/ - Original files from 1995
11+
Makefile - Used by make, contains the emulator configuration
12+
README.md - This file
13+
14+
main.c - CPU
15+
mem-km8e.c - Memory manager
16+
tty-kl8e.c - Console interface
17+
frontpanel-kc8m.c - Front panel (minimal function, dumb terminal)
18+
rtc-dk8e.c - Real time clock option
19+
hstape-pc8e.c - Paper-tape reader/punch
20+
card-cr8f.c - Card reader
21+
floppy-rx8e.c - RX01 floppy disk interface
22+
bus.h - Contains definitions all "boards" share
23+
debug.c - A makefile-selectable debugging aid
24+
realtime.c - Internal mechanisms to keep track of time
25+
ttyaccess.c - Internal mechanisms for terminal interface
26+
utility.c - Internal mechanisms for command-line interface
27+
28+
coredump.c - A utility - prints an octal dump of a saved core image.
29+
coremake.c - A utility - loads a RIM file into a core image.
30+
```

cr8f.c renamed to card-cr8f.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "realtime.h"
1616
#include "bus.h"
1717
#include "utility.h"
18-
#include "kc8m.h"
18+
#include "frontpanel-kc8m.h"
1919

2020

2121
#define read_time ( 1 * millisecond)

cr8f.h renamed to card-cr8f.h

File renamed without changes.

rx8e.c renamed to floppy-rx8e.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "realtime.h"
1818
#include "bus.h"
1919
#include "utility.h"
20-
#include "kc8m.h"
20+
#include "frontpanel-kc8m.h"
2121

2222
/***********/
2323
/* formats */

rx8e.h renamed to floppy-rx8e.h

File renamed without changes.
File renamed without changes.
File renamed without changes.

pc8e.c renamed to hstape-pc8e.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "realtime.h"
1414
#include "bus.h"
1515
#include "utility.h"
16-
#include "kc8m.h"
16+
#include "frontpanel-kc8m.h"
1717

1818
/***********/
1919
/* options */

pc8e.h renamed to hstape-pc8e.h

File renamed without changes.

0 commit comments

Comments
 (0)