add print hex word function

This commit is contained in:
nino-porcino 2022-01-31 11:03:57 +01:00
parent 29db2cc31e
commit 55a9d44f59
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ void woz_print_hex(byte c) {
#endif
}
// print hex word
void woz_print_hexword(word w) {
woz_print_hex(*((byte *)&w+1));
woz_print_hex(*((byte *)&w));
}
// puts a character on the apple1 screen using the WOZMON routine
void woz_putc(byte c) {
asm {