From 727081f99a5065787dd3d035f92ef9f502f3622c Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 1 Nov 2023 14:23:48 +0000 Subject: Removed OP_EQ signed versions as they're useless A negative number under 2s complement can never be equal to its positive as the top bit *must* be on. If two numbers are equivalent bit-by-bit then they are equal for both signed and unsigned numbers. --- lib/inst.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/inst.h') diff --git a/lib/inst.h b/lib/inst.h index 929c068..ff1709e 100644 --- a/lib/inst.h +++ b/lib/inst.h @@ -62,10 +62,7 @@ typedef enum OP_XOR_WORD, OP_EQ_BYTE, - OP_EQ_CHAR, OP_EQ_HWORD, - OP_EQ_INT, - OP_EQ_LONG, OP_EQ_WORD, // Mathematical operations @@ -75,24 +72,28 @@ typedef enum OP_LT_INT, OP_LT_LONG, OP_LT_WORD, + OP_LTE_BYTE, OP_LTE_CHAR, OP_LTE_HWORD, OP_LTE_INT, OP_LTE_LONG, OP_LTE_WORD, + OP_GT_BYTE, OP_GT_CHAR, OP_GT_HWORD, OP_GT_INT, OP_GT_LONG, OP_GT_WORD, + OP_GTE_BYTE, OP_GTE_CHAR, OP_GTE_HWORD, OP_GTE_INT, OP_GTE_LONG, OP_GTE_WORD, + OP_PLUS_BYTE, OP_PLUS_HWORD, OP_PLUS_WORD, @@ -100,8 +101,8 @@ typedef enum // Simple I/O OP_PRINT_BYTE, OP_PRINT_CHAR, - OP_PRINT_INT, OP_PRINT_HWORD, + OP_PRINT_INT, OP_PRINT_LONG, OP_PRINT_WORD, -- cgit v1.2.3-13-gbd6f