Fixed bug where printing hword of an instruction prints number not hex
This is an easy fix.
This commit is contained in:
@@ -179,7 +179,7 @@ void data_print(data_t datum, data_type_t type, FILE *fp)
|
|||||||
fprintf(fp, "%X", datum.as_byte);
|
fprintf(fp, "%X", datum.as_byte);
|
||||||
break;
|
break;
|
||||||
case DATA_TYPE_HWORD:
|
case DATA_TYPE_HWORD:
|
||||||
fprintf(fp, "%d", datum.as_hword);
|
fprintf(fp, "%X", datum.as_hword);
|
||||||
break;
|
break;
|
||||||
case DATA_TYPE_WORD:
|
case DATA_TYPE_WORD:
|
||||||
fprintf(fp, "%lX", datum.as_word);
|
fprintf(fp, "%lX", datum.as_word);
|
||||||
|
|||||||
Reference in New Issue
Block a user