1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

Improved commenting and initial state communication.

This commit is contained in:
Thomas Harte
2016-07-05 20:57:31 -04:00
parent 1e6d90de17
commit 6c4fa4ec5d
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -14,7 +14,13 @@ void Bus::add_port(std::shared_ptr<Port> port)
{
_ports.push_back(port);
for(int line = (int)ServiceRequest; line <= (int)Reset; line++)
{
// the addition of a new device may change the line output...
set_line_output_did_change((Line)line);
// ... but the new device will need to be told the current state regardless
port->set_input((Line)line, _line_values[line]);
}
}
void Bus::set_line_output_did_change(Line line)