1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-30 07:55:01 +00:00

Mildly rearranges to avoid unnecessary call.

This commit is contained in:
Thomas Harte 2018-05-22 21:50:07 -04:00
parent f9c25372c2
commit 086b801c29

View File

@ -75,9 +75,8 @@ void DiskII::select_drive(int drive) {
void DiskII::run_for(const Cycles cycles) {
if(is_sleeping()) return;
int integer_cycles = cycles.as_int();
if(!controller_can_sleep_) {
int integer_cycles = cycles.as_int();
while(integer_cycles--) {
const int address = (state_ & 0xf0) | inputs_ | ((shift_register_&0x80) >> 6);
inputs_ |= input_flux;