1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00

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

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");