mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Added print_port() helper to print physical port number.
This commit is contained in:
1 parent
3776f12f5c
commit
3c183f73f8
5 files changed
+28
-32
No files matched your search
@@ -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!
|
||||
|
||||
Reference in new issue
Block a user