Added print_port() helper to print physical port number.

This commit is contained in:
René van Dorst
2026-08-25 07:54:15 +02:00
parent 3776f12f5c
commit 3c183f73f8
5 changed files with 28 additions and 32 deletions
+13
View File
@@ -813,6 +813,19 @@ void print_reg(uint16_t reg)
print_sfr_data();
}
// Print the phy port for a log port number.
void print_port(uint8_t port)
{
if (port < 9)
write_char(machine.log_to_phys_port[port] + '0');
else if (port == 9)
print_string("CPU");
else {
print_string("UNKNOWN ");
write_char(port + '0');
}
}
/*
// TODO: This uses 2 DSEG bytes and is not used!