1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-28 21:49:27 +00:00

Shifts 8255 logging up into its own port handler. That's probably fine for now.

This commit is contained in:
Thomas Harte 2017-11-26 18:59:29 -05:00
parent 7a8a43a96a
commit e957e40b14

View File

@ -21,6 +21,10 @@
namespace MSX {
class i8255PortHandler: public Intel::i8255::PortHandler {
public:
void set_value(int port, uint8_t value) {
printf("8255 set %d to %02x\n", port, value);
}
};
class AYPortHandler: public GI::AY38910::PortHandler {
@ -114,7 +118,6 @@ class ConcreteMachine:
case 0xa8: case 0xa9:
case 0xaa: case 0xab:
printf("8255 %d %02x\n", address&3, *cycle.value);
i8255_.set_register(address, *cycle.value);
break;
}