diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-26 11:16:02 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-10-26 11:16:02 +0100 |
commit | e9c54e045af7db5623ee713a81aae5cc745f9ab6 (patch) | |
tree | 0f7649297f17c11bdb9113060d5b688ea1ec5999 /vm | |
parent | c70a9d9879ceb5f370a90c20202b8be651437493 (diff) | |
download | ovm-e9c54e045af7db5623ee713a81aae5cc745f9ab6.tar.gz ovm-e9c54e045af7db5623ee713a81aae5cc745f9ab6.tar.bz2 ovm-e9c54e045af7db5623ee713a81aae5cc745f9ab6.zip |
Fixed bug where printing hword of an instruction prints number not hex
This is an easy fix.
Diffstat (limited to 'vm')
-rw-r--r-- | vm/inst.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |