mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 01:31:42 +00:00
Minor steps towards implementing Line
.
This commit is contained in:
parent
b12fd00145
commit
fbfa26ad5e
@ -915,6 +915,11 @@ void Base<personality>::commit_register(int reg, uint8_t value) {
|
||||
case 0b1111: break; // TODO: hmmc.
|
||||
}
|
||||
|
||||
// Seed timing information if a command was found.
|
||||
if(Storage<personality>::command_) {
|
||||
// TODO.
|
||||
}
|
||||
|
||||
// TODO: record logical mode.
|
||||
break;
|
||||
}
|
||||
|
@ -52,11 +52,20 @@ struct Command {
|
||||
namespace Commands {
|
||||
|
||||
struct Line: public Command {
|
||||
using Command::Command;
|
||||
public:
|
||||
Line(CommandContext &context) : Command(context) {
|
||||
// Set up Bresenham constants.
|
||||
}
|
||||
|
||||
bool next() {
|
||||
return false;
|
||||
}
|
||||
bool next() {
|
||||
// Should implement Bresenham with cadence:
|
||||
//
|
||||
// 88 cycles before the next read; 24 to write.
|
||||
// Add 32 extra cycles if a minor-axis step occurs.
|
||||
return false;
|
||||
}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user