1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Ensures all keys are initially unpressed.

This commit is contained in:
Thomas Harte 2021-06-19 13:03:31 -04:00
parent 8f24aed43e
commit 1651efe4fc

View File

@ -81,6 +81,8 @@ class ConcreteMachine:
exos_.fill(0xff);
memcpy(exos_.data(), exos.data(), std::min(exos_.size(), exos.size()));
clear_all_keys();
// Take a reasonable guess at the initial memory configuration:
// put EXOS into the first bank since this is a Z80 and therefore
// starts from address 0; the third instruction in EXOS is a jump