py/asm: Add condition codes for signed comparisons. · csamuelson/circuitpython@b3b8706 · GitHub
Skip to content

Commit b3b8706

Browse files
committed
py/asm: Add condition codes for signed comparisons.
Signed-off-by: Damien George <damien@micropython.org>
1 parent aa26fe6 commit b3b8706

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

py/asmthumb.h

Lines changed: 7 additions & 0 deletions

py/asmx64.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@
6161

6262
// condition codes, used for jcc and setcc (despite their j-name!)
6363
#define ASM_X64_CC_JB (0x2) // below, unsigned
64+
#define ASM_X64_CC_JAE (0x3) // above or equal, unsigned
6465
#define ASM_X64_CC_JZ (0x4)
6566
#define ASM_X64_CC_JE (0x4)
6667
#define ASM_X64_CC_JNZ (0x5)
6768
#define ASM_X64_CC_JNE (0x5)
69+
#define ASM_X64_CC_JBE (0x6) // below or equal, unsigned
70+
#define ASM_X64_CC_JA (0x7) // above, unsigned
6871
#define ASM_X64_CC_JL (0xc) // less, signed
6972
#define ASM_X64_CC_JGE (0xd) // greater or equal, signed
7073
#define ASM_X64_CC_JLE (0xe) // less or equal, signed

py/asmx86.h

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)