tape training
This commit is contained in:
@@ -131,6 +131,15 @@ static void command_dump(uint8_t argc, char **argv)
|
||||
print_hex8(*(volatile uint8_t *)(address + offset + column));
|
||||
bios_putc(' ');
|
||||
}
|
||||
for (; column < 16; ++column) {
|
||||
bios_puts(" ");
|
||||
}
|
||||
bios_putc('|');
|
||||
for (column = 0; column < row_length; ++column) {
|
||||
uint8_t value = *(volatile uint8_t *)(address + offset + column);
|
||||
bios_putc(value >= ' ' && value <= '~' ? (char)value : '.');
|
||||
}
|
||||
bios_putc('|');
|
||||
bios_puts("\r\n");
|
||||
offset += row_length;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user