From ba57523f3ecba69e628a7a811f258b652cf48615 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 21 Oct 2023 23:54:35 +0100 Subject: Implemented opcode_as_cstr for NOT,OR,AND,XOR,EQ --- src/inst.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'src') diff --git a/src/inst.c b/src/inst.c index a6347c0..865a933 100644 --- a/src/inst.c +++ b/src/inst.c @@ -59,6 +59,51 @@ const char *opcode_as_cstr(opcode_t code) case OP_MOV_HWORD: return "MOV_HWORD"; break; + case OP_NOT_BYTE: + return "NOT_BYTE"; + break; + case OP_NOT_HWORD: + return "NOT_HWORD"; + break; + case OP_NOT_WORD: + return "NOT_WORD"; + break; + case OP_OR_BYTE: + return "OR_BYTE"; + break; + case OP_OR_HWORD: + return "OR_HWORD"; + break; + case OP_OR_WORD: + return "OR_WORD"; + break; + case OP_AND_BYTE: + return "AND_BYTE"; + break; + case OP_AND_HWORD: + return "AND_HWORD"; + break; + case OP_AND_WORD: + return "AND_WORD"; + break; + case OP_XOR_BYTE: + return "XOR_BYTE"; + break; + case OP_XOR_HWORD: + return "XOR_HWORD"; + break; + case OP_XOR_WORD: + return "XOR_WORD"; + break; + case OP_EQ_BYTE: + return "EQ_BYTE"; + break; + case OP_EQ_HWORD: + return "EQ_HWORD"; + break; + case OP_EQ_WORD: + return "EQ_WORD"; + break; case OP_HALT: return "HALT"; break; -- cgit v1.2.3-13-gbd6f