Changeset 183 in dev for trunk/abdev/BasicCompiler64/NumOpe_TypeOperation.cpp
- Timestamp:
- Jun 24, 2007, 6:50:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/NumOpe_TypeOperation.cpp
r56 r183 1 #include <jenga/include/smoothie/Smoothie.h> 2 3 #include <Compiler.h> 4 1 5 #include "../BasicCompiler_Common/common.h" 2 6 #include "Opcode.h" … … 10 14 //and reg,00000000FFFFFFFFh 11 15 } 12 else if(type==DEF_INTEGER || ( isUnicode&&type==DEF_CHAR)){16 else if(type==DEF_INTEGER || (Smoothie::IsUnicode()&&type==DEF_CHAR)){ 13 17 //movsx reg64,reg16 14 18 op_movsx64_FromReg16(reg,reg); … … 18 22 op_and64_value(reg,(int)0xFFFF); 19 23 } 20 else if(type==DEF_SBYTE || ( isUnicode==false&&type==DEF_CHAR)){24 else if(type==DEF_SBYTE || (Smoothie::IsUnicode()==false&&type==DEF_CHAR)){ 21 25 //movsx reg64,reg8 22 26 op_movsx64_FromReg8(reg,reg); … … 28 32 } 29 33 void ExtendTypeTo32(int type,int reg){ 30 if(type==DEF_INTEGER || ( isUnicode&&type==DEF_CHAR)){34 if(type==DEF_INTEGER || (Smoothie::IsUnicode()&&type==DEF_CHAR)){ 31 35 //movsx reg32,reg16 32 36 op_movsx32_FromReg16(reg,reg); … … 36 40 op_and32_value(reg,(int)0xFFFF); 37 41 } 38 else if(type==DEF_SBYTE || ( isUnicode==false&&type==DEF_CHAR)){42 else if(type==DEF_SBYTE || (Smoothie::IsUnicode()==false&&type==DEF_CHAR)){ 39 43 //movsx reg32,reg8 40 44 op_movsx32_FromReg8(reg,reg); … … 46 50 } 47 51 void ExtendTypeTo16(int type,int reg){ 48 if(type==DEF_SBYTE || ( isUnicode==false&&type==DEF_CHAR)){52 if(type==DEF_SBYTE || (Smoothie::IsUnicode()==false&&type==DEF_CHAR)){ 49 53 //movsx reg16,reg8 50 54 op_movsx16_FromReg8(reg,reg); … … 85 89 int temp; 86 90 _int64 i64data=0x43f0000000000000; 87 temp= dataTable.Add( i64data );91 temp=Compiler::GetNativeCode().GetDataTable().Add( i64data ); 88 92 OpBuffer[obp++]=(char)0xF2; 89 93 OpBuffer[obp++]=(char)0x0F; … … 144 148 int temp; 145 149 long i32data=0x5f800000; 146 temp= dataTable.Add( i32data );150 temp=Compiler::GetNativeCode().GetDataTable().Add( i32data ); 147 151 OpBuffer[obp++]=(char)0xF3; 148 152 OpBuffer[obp++]=(char)0x0F;
Note:
See TracChangeset
for help on using the changeset viewer.