From 00edfdb0d430d8bf1d2fc98cb226114ef271d993 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Fri, 13 Jan 2023 20:22:51 +0000 Subject: these might be the last codegen fixes needed for now --- compiler_and_linker/unsorted/PCodeInfo.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'compiler_and_linker/unsorted/PCodeInfo.c') diff --git a/compiler_and_linker/unsorted/PCodeInfo.c b/compiler_and_linker/unsorted/PCodeInfo.c index fdd19a2..8f863f7 100644 --- a/compiler_and_linker/unsorted/PCodeInfo.c +++ b/compiler_and_linker/unsorted/PCodeInfo.c @@ -1130,23 +1130,22 @@ void formatoperands(PCode *pcode, char *buf, int showBasicBlocks) { if (pcode->flags & fCommutative) buf += sprintf(buf, "; fCommutative"); - // i think these are the wrong way round lol - if (flagSetT & fIsPtrOp) + if (flagSetF & fIsPtrOp) buf += sprintf(buf, "; fIsPtrOp"); - if (flagSetF) { - if (flagSetF & fLink) + if (flagSetT) { + if (flagSetT & fLink) buf += sprintf(buf, "; fLink"); - if (flagSetF & fAbsolute) + if (flagSetT & fAbsolute) buf += sprintf(buf, "; fAbsolute"); - if (flagSetF & fBranchTaken) + if (flagSetT & fBranchTaken) buf += sprintf(buf, "; fBranchTaken"); - if (flagSetF & fBranchNotTaken) + if (flagSetT & fBranchNotTaken) buf += sprintf(buf, "; fBranchNotTaken"); - } else if (flagSetT) { - if (flagSetT & fSetsCarry) + } else if (flagSetF) { + if (flagSetF & fSetsCarry) buf += sprintf(buf, "; fSetsCarry"); - if (flagSetT & fOverflow) + if (flagSetF & fOverflow) buf += sprintf(buf, "; fOverflow"); } -- cgit v1.2.3