From ce3badc281221127408795193b076369b7013fbb Mon Sep 17 00:00:00 2001 From: Christopher Mosher Date: Sat, 26 Jan 2019 01:15:38 -0500 Subject: [PATCH] add rev. 0 random char at power-on --- src/emulator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/emulator.cpp b/src/emulator.cpp index 2f957e8..3eb7161 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -47,6 +47,11 @@ void Emulator::toggleComputerPower() { } void Emulator::powerOnComputer() { + if (this->apple2.revision == 0) { + unsigned char key = 33u + rand()%94; + this->keypresses.push(key); + this->lastKeyDown = key; + } this->apple2.powerOn(); this->screenImage.drawPower(true); this->display.setNoise(false);