Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement some proportion of the AT keyboard controller. #1488

Merged
merged 16 commits into from
Mar 12, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Log A20 line.
TomHarte committed Mar 10, 2025
commit 4f35d5dabd19676a86181ca852fe1e1cfe077b74
6 changes: 5 additions & 1 deletion Machines/PCCompatible/CPUControl.hpp
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
#include "Segments.hpp"

#include "Analyser/Static/PCCompatible/Target.hpp"
#include "Outputs/Log.hpp"

namespace PCCompatible {

@@ -31,14 +32,17 @@ class CPUControl {
segments_.reset();
}

void set_a20_enabled(bool) {
void set_a20_enabled(const bool enabled) {
// Assumed: this'll be something to set on Memory.
log_.info().append("A20 line is now: ", enabled);
}

private:
Registers<processor_model(model)> &registers_;
Segments<processor_model(model)> &segments_;
Memory<model> &memory_;

Log::Logger<Log::Source::PCCompatible> log_;
};