From 9df41590be341e3f59ae97055671ab46084dc631 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Fri, 28 Jan 2022 00:11:48 -0800 Subject: [PATCH] apple2: Ctrl+Bksp -> soft RESET --- src/machine/apple2.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/machine/apple2.ts b/src/machine/apple2.ts index c18cfccb..e97ce90f 100644 --- a/src/machine/apple2.ts +++ b/src/machine/apple2.ts @@ -296,7 +296,14 @@ export class AppleII extends BasicScanlineMachine { } else if (flags & KeyFlags.KeyDown) { code = 0; switch (key) { - case 8: code=8; break; // left + case 8: + code=8; // left + if (flags & KeyFlags.Ctrl) { + // (possibly) soft reset + this.cpu.reset(); + return; + } + break; case 13: code=13; break; // return case 27: code=27; break; // escape case 37: code=8; break; // left