1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-30 04:50:08 +00:00

8255: update_outputs now affects only those ports designated as outputs.

This commit is contained in:
Thomas Harte 2017-12-10 17:55:37 -05:00
parent f957344ac4
commit 798cdba979

View File

@ -76,8 +76,8 @@ template <class T> class i8255 {
private: private:
void update_outputs() { void update_outputs() {
port_handler_.set_value(0, outputs_[0]); if(!(control_ & 0x10)) port_handler_.set_value(0, outputs_[0]);
port_handler_.set_value(1, outputs_[1]); if(!(control_ & 0x02)) port_handler_.set_value(1, outputs_[1]);
port_handler_.set_value(2, outputs_[2]); port_handler_.set_value(2, outputs_[2]);
} }