1
0
mirror of https://gitlab.os-k.eu/os-k-team/kvisc.git synced 2023-08-25 14:05:46 +02:00
This commit is contained in:
julianb0 2019-06-16 20:26:30 +02:00
parent ff2f98ff98
commit 82109a9cc3
No known key found for this signature in database
GPG Key ID: DDF8325C95299A62

View File

@ -33,30 +33,39 @@ void dump_instr(ctx_t *ctx,
if (lock)
log("lock");
#if _ATT_STYLE == 0
log("%s", in->name);
#else
char s0[2] = {0,0}, s1[2] = {0, 0}, s2[2] = {0, 0};
if (p1 && ACC_IS_MEM(p1)) {
s0[0] = ':';
s1[0] = getmempref(p1->mlen);
#if _ATT_STYLE == 1
if (p1 || p2)
{
int l1 = 8, l2 = 8;
if (p1 && ACC_IS_MEM(p1)) {
l1 = p1->mlen;
}
if (p2 && ACC_IS_MEM(p2)) {
l2 = p2->mlen;
}
log("%c", getmempref(l1<l2 ? l1 : l2));
}
if (p2 && ACC_IS_MEM(p2)) {
s0[0] = ':';
s2[0] = getmempref(p2->mlen);
}
log("%s%s%s%s", in->name, s0, s1, s2);
#endif
if (rep)
#if _ATT_STYLE == 0
log(".rep");
#else
log("$rep");
#endif
if (cond)
{
#if _ATT_STYLE == 0
log(".");
#else
log("?");
#endif
if (cond & (1 << 4))
{