1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Switch what's left of Enterprise logging to actual LOGs.

This commit is contained in:
Thomas Harte 2021-07-03 12:50:46 -04:00
parent 0c09275a9f
commit f384370b18

View File

@ -21,6 +21,9 @@
#include "../../Outputs/Speaker/Implementation/LowpassSpeaker.hpp" #include "../../Outputs/Speaker/Implementation/LowpassSpeaker.hpp"
#include "../../Processors/Z80/Z80.hpp" #include "../../Processors/Z80/Z80.hpp"
#define LOG_PREFIX "[Enterprise] "
#include "../../Outputs/Log.hpp"
namespace Enterprise { namespace Enterprise {
/* /*
@ -334,8 +337,7 @@ template <bool has_disk_controller> class ConcreteMachine:
case CPU::Z80::PartialMachineCycle::Input: case CPU::Z80::PartialMachineCycle::Input:
switch(address & 0xff) { switch(address & 0xff) {
default: default:
printf("Unhandled input: %04x\n", address); LOG("Unhandled input from " << PADHEX(2) << (address & 0xff));
// assert(false);
*cycle.value = 0xff; *cycle.value = 0xff;
break; break;
@ -393,8 +395,7 @@ template <bool has_disk_controller> class ConcreteMachine:
case CPU::Z80::PartialMachineCycle::Output: case CPU::Z80::PartialMachineCycle::Output:
switch(address & 0xff) { switch(address & 0xff) {
default: default:
printf("Unhandled output: %04x\n", address); LOG("Unhandled output: " << PADHEX(2) << *cycle.value << " to " << PADHEX(2) << (address & 0xff));
// assert(false);
break; break;
case 0x10: case 0x11: case 0x12: case 0x13: case 0x10: case 0x11: case 0x12: case 0x13:
@ -480,12 +481,12 @@ template <bool has_disk_controller> class ConcreteMachine:
break; break;
case 0xb6: case 0xb6:
// Just 8 bits of printer data. // Just 8 bits of printer data.
printf("TODO: printer output %02x\n", *cycle.value); LOG("TODO: printer output " << PADHEX(2) << *cycle.value);
break; break;
case 0xb7: case 0xb7:
// b0 = serial data out // b0 = serial data out
// b1 = serial status out // b1 = serial status out
printf("TODO: serial output %02x\n", *cycle.value); LOG("TODO: serial output " << PADHEX(2) << *cycle.value);
break; break;
case 0xbf: case 0xbf:
// TODO: onboard RAM, Dave 8/12Mhz select. // TODO: onboard RAM, Dave 8/12Mhz select.