From fa59c4b8e506e5503caa5b8b4499a3c1965800a5 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 30 May 2021 16:47:19 -0700 Subject: Work in progress from May 30 --- PLAN | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 PLAN (limited to 'PLAN') diff --git a/PLAN b/PLAN new file mode 100644 index 0000000..d5c2311 --- /dev/null +++ b/PLAN @@ -0,0 +1,17 @@ +Don't ignore 6000 and 6001 + +Add "interrupts enabled" flag +6000, 6001, 6002 should properly handle it + 6000 - skip next instruction if interrupts are enabled; disable interrupts (we should probably do this immediately) + 6001 - enable interrupts (after next instruction) + 6002 - disable interrupts (we should probably do this immediately) + +Jules thinks clock is most likely interrupt source + pdp8 source tries to map clock interrupts to "real time" - we might want to mangle that to make it deterministic + +Sources of interrupts observed: + PTR flag is set from loader, might be ignorable + Memory management is poked from inside ISRs, might be ignorable (MMU should be optional) + TTO ready for output interrupt - this looks like a very likely candidate + TTI input ready interrupt - this looks like a very likely candidate + Looks like these happen even when there is no input available - might be caused by the program itself doing something a little funny -- cgit v1.2.3