aboutsummaryrefslogtreecommitdiff
path: root/py/asmx86.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-06-26 18:26:01 +1000
committerDamien George <damien@micropython.org>2020-06-27 00:24:04 +1000
commitb3b8706d27cffbfc4cdd447b204ae7083283d13c (patch)
treed267a49a4e3d87ae6a0565b6404aa3bb9285ff5b /py/asmx86.h
parentaa26fe62d8728c95d447475ced9b4a03380025ea (diff)
py/asm: Add condition codes for signed comparisons.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/asmx86.h')
-rw-r--r--py/asmx86.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/asmx86.h b/py/asmx86.h
index f28040abf..8f1b06d22 100644
--- a/py/asmx86.h
+++ b/py/asmx86.h
@@ -63,10 +63,13 @@
// condition codes, used for jcc and setcc (despite their j-name!)
#define ASM_X86_CC_JB (0x2) // below, unsigned
+#define ASM_X86_CC_JAE (0x3) // above or equal, unsigned
#define ASM_X86_CC_JZ (0x4)
#define ASM_X86_CC_JE (0x4)
#define ASM_X86_CC_JNZ (0x5)
#define ASM_X86_CC_JNE (0x5)
+#define ASM_X86_CC_JBE (0x6) // below or equal, unsigned
+#define ASM_X86_CC_JA (0x7) // above, unsigned
#define ASM_X86_CC_JL (0xc) // less, signed
#define ASM_X86_CC_JGE (0xd) // greater or equal, signed
#define ASM_X86_CC_JLE (0xe) // less or equal, signed