mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +00:00
Improve transfer flag for LMMC.
This commit is contained in:
parent
2d6afe1013
commit
1e646eb57b
@ -1029,7 +1029,8 @@ uint8_t Base<personality>::read_register() {
|
||||
(queued_access_ == MemoryAccess::None ? 0x80 : 0x00) &
|
||||
((
|
||||
!Storage<personality>::command_ ||
|
||||
Storage<personality>::command_->access != Command::AccessType::WaitForColour
|
||||
!Storage<personality>::command_->is_cpu_transfer ||
|
||||
Storage<personality>::command_->access == Command::AccessType::WaitForColour
|
||||
) ? 0x80 : 0x00);
|
||||
|
||||
return
|
||||
|
@ -66,6 +66,7 @@ struct Command {
|
||||
};
|
||||
AccessType access = AccessType::PlotPoint;
|
||||
int cycles = 0;
|
||||
bool is_cpu_transfer = false;
|
||||
Vector location;
|
||||
|
||||
/// Current command parameters.
|
||||
@ -176,6 +177,7 @@ struct LogicalMoveFromCPU: public Command {
|
||||
|
||||
cycles = 64;
|
||||
access = AccessType::WaitForColour;
|
||||
is_cpu_transfer = true;
|
||||
}
|
||||
|
||||
void advance() final {
|
||||
|
Loading…
Reference in New Issue
Block a user