From 798cdba9797e918f92d9987fbe04f663b9772c07 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 10 Dec 2017 17:55:37 -0500 Subject: [PATCH] 8255: update_outputs now affects only those ports designated as outputs. --- Components/8255/i8255.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Components/8255/i8255.hpp b/Components/8255/i8255.hpp index d5ec91de9..1a25e8196 100644 --- a/Components/8255/i8255.hpp +++ b/Components/8255/i8255.hpp @@ -76,8 +76,8 @@ template class i8255 { private: void update_outputs() { - port_handler_.set_value(0, outputs_[0]); - port_handler_.set_value(1, outputs_[1]); + if(!(control_ & 0x10)) port_handler_.set_value(0, outputs_[0]); + if(!(control_ & 0x02)) port_handler_.set_value(1, outputs_[1]); port_handler_.set_value(2, outputs_[2]); }