assembly wip

This commit is contained in:
julianb0 2019-06-12 15:36:52 +02:00
parent b7fa46e540
commit d5970ad5e5
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
1 changed files with 14 additions and 3 deletions

View File

@ -5,8 +5,12 @@
char *cond_suffixes[] =
{
"",
".c"
"-",
"c", "o", "z", "s", "p",
"a", "ae", "b", "be",
"g", "ge", "l", "le",
"cxz",
"?"
};
static void dump_acc(ctx_t *ctx, acc_t *p)
@ -75,7 +79,14 @@ void dump_instr(
log("rep ");
if (cond)
log("c%x", cond);
{
if (cond & (1 << 4))
log("n");
assert(cond <= sizeof(cond_suffixes)/sizeof(char *));
log("%s", cond_suffixes[cond]);
}
log("\t");