1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Minor steps towards implementing Line.

This commit is contained in:
Thomas Harte 2023-01-26 12:55:08 -05:00
parent b12fd00145
commit fbfa26ad5e
2 changed files with 18 additions and 4 deletions

View File

@ -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;
}

View File

@ -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:
};
}