Changeset 55 in dev for BasicCompiler64/NumOpe_TypeOperation.cpp
- Timestamp:
- Feb 13, 2007, 3:14:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/NumOpe_TypeOperation.cpp
r36 r55 10 10 //and reg,00000000FFFFFFFFh 11 11 } 12 else if(type==DEF_INTEGER ){12 else if(type==DEF_INTEGER || (isUnicode&&type==DEF_CHAR)){ 13 13 //movsx reg64,reg16 14 14 op_movsx64_FromReg16(reg,reg); … … 18 18 op_and64_value(reg,(int)0xFFFF); 19 19 } 20 else if(type==DEF_ CHAR){20 else if(type==DEF_SBYTE || (isUnicode==false&&type==DEF_CHAR)){ 21 21 //movsx reg64,reg8 22 22 op_movsx64_FromReg8(reg,reg); … … 28 28 } 29 29 void ExtendTypeTo32(int type,int reg){ 30 if(type==DEF_INTEGER ){30 if(type==DEF_INTEGER || (isUnicode&&type==DEF_CHAR)){ 31 31 //movsx reg32,reg16 32 32 op_movsx32_FromReg16(reg,reg); … … 36 36 op_and32_value(reg,(int)0xFFFF); 37 37 } 38 else if(type==DEF_ CHAR){38 else if(type==DEF_SBYTE || (isUnicode==false&&type==DEF_CHAR)){ 39 39 //movsx reg32,reg8 40 40 op_movsx32_FromReg8(reg,reg); … … 46 46 } 47 47 void ExtendTypeTo16(int type,int reg){ 48 if(type==DEF_ CHAR){48 if(type==DEF_SBYTE || (isUnicode==false&&type==DEF_CHAR)){ 49 49 //movsx reg16,reg8 50 50 op_movsx16_FromReg8(reg,reg);
Note:
See TracChangeset
for help on using the changeset viewer.