From e9c54e045af7db5623ee713a81aae5cc745f9ab6 Mon Sep 17 00:00:00 2001
From: Aryadev Chavali <aryadev@aryadevchavali.com>
Date: Thu, 26 Oct 2023 11:16:02 +0100
Subject: Fixed bug where printing hword of an instruction prints number not
 hex

This is an easy fix.
---
 vm/inst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vm/inst.c b/vm/inst.c
index 8caba06..8394942 100644
--- a/vm/inst.c
+++ b/vm/inst.c
@@ -179,7 +179,7 @@ void data_print(data_t datum, data_type_t type, FILE *fp)
     fprintf(fp, "%X", datum.as_byte);
     break;
   case DATA_TYPE_HWORD:
-    fprintf(fp, "%d", datum.as_hword);
+    fprintf(fp, "%X", datum.as_hword);
     break;
   case DATA_TYPE_WORD:
     fprintf(fp, "%lX", datum.as_word);
-- 
cgit v1.2.3-13-gbd6f