Fixed bug where printing hword of an instruction prints number not hex

This is an easy fix.
This commit is contained in:
2023-10-26 11:16:02 +01:00
parent c70a9d9879
commit e9c54e045a

View File

@@ -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);