This commit is contained in:
julianb0 2019-06-16 19:52:32 +02:00
parent 50195c14b6
commit 0d6adecc3e
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
1 changed files with 8 additions and 6 deletions

View File

@ -13,7 +13,9 @@ char *cond_suffixes[] =
"?"
};
#define _ATT_STYLE 0
#ifndef _ATT_STYLE
#define _ATT_STYLE 1
#endif
static void dump_acc(ctx_t *ctx, acc_t *p);
@ -31,7 +33,7 @@ void dump_instr(ctx_t *ctx,
if (lock)
log("lock");
#if !_ATT_STYLE
#if _ATT_STYLE == 0
log("%s", in->name);
#else
char s1[2] = {0, 0}, s2[2] = {0, 0};
@ -69,14 +71,14 @@ void dump_instr(ctx_t *ctx,
else
log("\t");
if (p1) {
#if !_ATT_STYLE
if (p1)
{
#if _ATT_STYLE == 0
dump_acc(ctx, p1);
if (p2) {
log(", ");
dump_acc(ctx, p2);
}
}
#else
if (p2) {
dump_acc(ctx, p2);
@ -89,7 +91,7 @@ void dump_instr(ctx_t *ctx,
log("\n");
}
#if !_ATT_STYLE
#if _ATT_STYLE == 0
void dump_acc(ctx_t *ctx, acc_t *p)
{