From 55a9d44f596587daa23b34a52a23174aa1bb90e5 Mon Sep 17 00:00:00 2001 From: nino-porcino Date: Mon, 31 Jan 2022 11:03:57 +0100 Subject: [PATCH] add print hex word function --- lib/apple1.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/apple1.h b/lib/apple1.h index e27d59d..f5638e5 100644 --- a/lib/apple1.h +++ b/lib/apple1.h @@ -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 {