From 60f347b36322c6ace18ffd5b53c329fc80ca80e9 Mon Sep 17 00:00:00 2001 From: kelson42 Date: Mon, 14 Mar 2011 22:50:50 +0000 Subject: [PATCH] + new improvements in ctpp2 integration --- src/ctpp2/include/CTPP2VMOpcodes.h | 2 +- src/ctpp2/src/CTPP2Compiler.cpp | 2 +- src/ctpp2/src/CTPP2VM.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ctpp2/include/CTPP2VMOpcodes.h b/src/ctpp2/include/CTPP2VMOpcodes.h index 9f9c384..3cb6dfe 100644 --- a/src/ctpp2/include/CTPP2VMOpcodes.h +++ b/src/ctpp2/include/CTPP2VMOpcodes.h @@ -85,7 +85,7 @@ #define IDIV 0x03070000 // Integer division #define MOD 0x03080000 // Divide two numbers and returns only the remainder #define NEG 0x03090000 // Negate -#define NOT 0x030A0000 // Logical negation +#define CTPP2_NOT 0x030A0000 // Logical negation // String ops. ///////// 0x-3X----- //////////////////////////////////////////////////////////////// #define CONCAT 0x03100000 // Concatenate strings diff --git a/src/ctpp2/src/CTPP2Compiler.cpp b/src/ctpp2/src/CTPP2Compiler.cpp index 24422be..12a44a4 100644 --- a/src/ctpp2/src/CTPP2Compiler.cpp +++ b/src/ctpp2/src/CTPP2Compiler.cpp @@ -1445,7 +1445,7 @@ INT_32 CTPP2Compiler::OpNot(const VMDebugInfo & oDebugInfo) { COMPILER_REPORTER("OpNot"); -return oVMOpcodeCollector.Insert(CreateInstruction(NOT | ARG_SRC_STACK, 0, oDebugInfo.GetInfo())); +return oVMOpcodeCollector.Insert(CreateInstruction(CTPP2_NOT | ARG_SRC_STACK, 0, oDebugInfo.GetInfo())); } // diff --git a/src/ctpp2/src/CTPP2VM.cpp b/src/ctpp2/src/CTPP2VM.cpp index b96cc54..69bc6f1 100644 --- a/src/ctpp2/src/CTPP2VM.cpp +++ b/src/ctpp2/src/CTPP2VM.cpp @@ -1044,7 +1044,7 @@ HL_RST; break; // NOT, Logical negation - case SYSCALL_OPCODE_LO(NOT): + case SYSCALL_OPCODE_LO(CTPP2_NOT): { if (iSrcReg == ARG_SRC_STACK) {