diff options
Diffstat (limited to 'opcodes/tic80-dis.c')
-rw-r--r-- | opcodes/tic80-dis.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/opcodes/tic80-dis.c b/opcodes/tic80-dis.c index fed68ae..02a4110 100644 --- a/opcodes/tic80-dis.c +++ b/opcodes/tic80-dis.c @@ -280,6 +280,14 @@ print_insn_tic80 (memaddr, info) (*info -> fprintf_func) (info -> stream, "%#lx", value); } } + else if ((operand -> flags & TIC80_OPERAND_FLOAT) != 0) + { + /* FIXME: depends upon sizeof (long) == sizeof (float) */ + union { float f; long l; } fval; + + fval.l = value; + (*info -> fprintf_func) (info -> stream, "%g", fval.f); + } else { if ((value > 999 || value < -999) |