mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-18 16:30:29 +00:00
Honour direction, start transfer immediately.
This commit is contained in:
parent
1e646eb57b
commit
41ba883fb6
@ -175,8 +175,9 @@ struct LogicalMoveFromCPU: public Command {
|
|||||||
start_x_ = context.destination.v[0];
|
start_x_ = context.destination.v[0];
|
||||||
width_ = context.size.v[0];
|
width_ = context.size.v[0];
|
||||||
|
|
||||||
cycles = 64;
|
// This command is started with the first colour ready to transfer.
|
||||||
access = AccessType::WaitForColour;
|
cycles = 32;
|
||||||
|
access = AccessType::PlotPoint;
|
||||||
is_cpu_transfer = true;
|
is_cpu_transfer = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -193,15 +194,15 @@ struct LogicalMoveFromCPU: public Command {
|
|||||||
case AccessType::PlotPoint:
|
case AccessType::PlotPoint:
|
||||||
cycles = 0;
|
cycles = 0;
|
||||||
access = AccessType::WaitForColour;
|
access = AccessType::WaitForColour;
|
||||||
++location.v[0];
|
context.destination.add<0>(context.arguments & 0x4 ? -1 : 1);
|
||||||
--context.size.v[0];
|
--context.size.v[0];
|
||||||
|
|
||||||
if(!context.size.v[0]) {
|
if(!context.size.v[0]) {
|
||||||
cycles = 64;
|
cycles = 64;
|
||||||
context.size.v[0] = width_;
|
context.size.v[0] = width_;
|
||||||
location.v[0] = start_x_;
|
context.destination.v[0] = start_x_;
|
||||||
|
|
||||||
++location.v[1];
|
context.destination.add<1>(context.arguments & 0x8 ? -1 : 1);
|
||||||
--context.size.v[1];
|
--context.size.v[1];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user