Skip to content

Commit

Permalink
Minor cleanups in printing
Browse files Browse the repository at this point in the history
  • Loading branch information
Wallbraker committed Apr 7, 2012
1 parent 73fa132 commit 39f2dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dcpu16-gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ ST_FUNC void load(int r, SValue *sv)

bool pure_indirect; // SET r, [sv]
int regf = sv->r; // flags & register
int type_def = sv->type.t; // type definition
int type_def = sv->type.t; // type definition
int addr = sv->c.ul; // address

int align, size = type_size(&vtop[0].type, &align);
Expand Down Expand Up @@ -661,7 +661,7 @@ ST_FUNC void gen_opi(int op)
emit_simple_math(MUL, r, fr, f_is_const);
break;
default:
UNSUPPORTED("unsupported integer operation (%u)", op);
UNSUPPORTED("unsupported integer operation (%x)", op);
}
}

Expand Down
2 changes: 1 addition & 1 deletion helper-dump.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static inline void dump_r(DumpFunc df, int r)
break;
default:
if (val < VT_CONST)
len += sprintf(buffer + len, "reg %u\0", val);
len += sprintf(buffer + len, "< VT_CONST (reg %u)\0", val);
else
len += sprintf(buffer + len, "???UNKOWN??? (%u)\0", val);
}
Expand Down

0 comments on commit 39f2dfd

Please sign in to comment.