1
0
mirror of https://github.com/aap/pdp6.git synced 2026-04-28 21:07:28 +00:00

better debugging tracing; fixed bug related to keys

This commit is contained in:
aap
2016-10-05 19:06:47 +02:00
parent 01be323fad
commit 2a67b180a8
10 changed files with 748 additions and 191 deletions

12
pdp6.h
View File

@@ -16,6 +16,11 @@ typedef uint8_t u8;
typedef unsigned char uchar;
typedef uchar bool;
extern FILE *debugfp;
extern int dotrace;
void trace(char *fmt, ...);
void debug(char *fmt, ...);
enum Mask {
FW = 0777777777777,
RT = 0000000777777,
@@ -49,6 +54,13 @@ enum FullwordBits {
F33 = 0000000000004, F34 = 0000000000002, F35 = 0000000000001
};
/* external pulses, bits of Apr.extpulse */
enum Extpulse {
EXT_KEY_MANUAL = 1,
EXT_KEY_STOP = 2,
EXT_NONEXIT_MEM = 4
};
enum Opcode {
FSC = 0132,
IBP = 0133,