1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-26 10:29:31 +00:00

Reduce repetition, tidy slightly.

This commit is contained in:
Thomas Harte 2023-01-28 21:43:14 -05:00
parent d3c446d91b
commit 2d6afe1013
2 changed files with 4 additions and 10 deletions

View File

@ -646,13 +646,7 @@ template <Personality personality> struct Base: public Storage<personality> {
ram_[address] = Storage<personality>::command_latch_;
Storage<personality>::command_->advance();
if(Storage<personality>::command_->done()) {
Storage<personality>::command_ = nullptr;
Storage<personality>::next_command_step_ = CommandStep::None;
} else {
Storage<personality>::update_command_step(access_column);
}
Storage<personality>::update_command_step(access_column);
} break;
}
}

View File

@ -196,11 +196,11 @@ struct LogicalMoveFromCPU: public Command {
if(!context.size.v[0]) {
cycles = 64;
++location.v[1];
--context.size.v[1];
context.size.v[0] = width_;
location.v[0] = start_x_;
++location.v[1];
--context.size.v[1];
}
break;
}