mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Mildly rearranges to avoid unnecessary call.
This commit is contained in:
parent
f9c25372c2
commit
086b801c29
@ -75,9 +75,8 @@ void DiskII::select_drive(int drive) {
|
|||||||
void DiskII::run_for(const Cycles cycles) {
|
void DiskII::run_for(const Cycles cycles) {
|
||||||
if(is_sleeping()) return;
|
if(is_sleeping()) return;
|
||||||
|
|
||||||
int integer_cycles = cycles.as_int();
|
|
||||||
|
|
||||||
if(!controller_can_sleep_) {
|
if(!controller_can_sleep_) {
|
||||||
|
int integer_cycles = cycles.as_int();
|
||||||
while(integer_cycles--) {
|
while(integer_cycles--) {
|
||||||
const int address = (state_ & 0xf0) | inputs_ | ((shift_register_&0x80) >> 6);
|
const int address = (state_ & 0xf0) | inputs_ | ((shift_register_&0x80) >> 6);
|
||||||
inputs_ |= input_flux;
|
inputs_ |= input_flux;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user