add rev. 0 random char at power-on

This commit is contained in:
Christopher Mosher 2019-01-26 01:15:38 -05:00
parent 093c4dae2f
commit ce3badc281
1 changed files with 5 additions and 0 deletions

View File

@ -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);