This commit is contained in:
julianb0 2019-06-16 19:47:57 +02:00
parent d60abc509a
commit 50195c14b6
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62
1 changed files with 4 additions and 5 deletions

View File

@ -13,8 +13,7 @@ char *cond_suffixes[] =
"?" "?"
}; };
// Comment the following line to get back intel syntax #define _ATT_STYLE 0
#define _ATT_STYLE 1
static void dump_acc(ctx_t *ctx, acc_t *p); static void dump_acc(ctx_t *ctx, acc_t *p);
@ -32,7 +31,7 @@ void dump_instr(ctx_t *ctx,
if (lock) if (lock)
log("lock"); log("lock");
#ifndef _ATT_STYLE #if !_ATT_STYLE
log("%s", in->name); log("%s", in->name);
#else #else
char s1[2] = {0, 0}, s2[2] = {0, 0}; char s1[2] = {0, 0}, s2[2] = {0, 0};
@ -71,7 +70,7 @@ void dump_instr(ctx_t *ctx,
log("\t"); log("\t");
if (p1) { if (p1) {
#ifndef _ATT_STYLE #if !_ATT_STYLE
dump_acc(ctx, p1); dump_acc(ctx, p1);
if (p2) { if (p2) {
log(", "); log(", ");
@ -90,7 +89,7 @@ void dump_instr(ctx_t *ctx,
log("\n"); log("\n");
} }
#ifndef _ATT_STYLE #if !_ATT_STYLE
void dump_acc(ctx_t *ctx, acc_t *p) void dump_acc(ctx_t *ctx, acc_t *p)
{ {