Changeset 461 in dev for trunk/ab5.0/abdev/BasicCompiler32/Compile_Set_Var.cpp
- Timestamp:
- Mar 23, 2008, 11:35:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler32/Compile_Set_Var.cpp
r290 r461 1 1 #include "stdafx.h" 2 3 #include <jenga/include/smoothie/Smoothie.h>4 2 5 3 #include <Compiler.h> … … 212 210 } 213 211 void ExtendTypeTo32(int type,int reg){ 214 if(type==DEF_INTEGER || ( Smoothie::IsUnicode()&&type==DEF_CHAR)){212 if(type==DEF_INTEGER || (compiler.IsUnicode()&&type==DEF_CHAR)){ 215 213 //movsx reg32,reg16 216 214 compiler.codeGenerator.op_movsx_R32R16(reg,reg); … … 220 218 compiler.codeGenerator.op_and_RV(reg,(int)0x0000FFFF); 221 219 } 222 else if(type==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&type==DEF_CHAR)){220 else if(type==DEF_SBYTE || (compiler.IsUnicode()==false&&type==DEF_CHAR)){ 223 221 //movsx reg32,reg8 224 222 compiler.codeGenerator.op_movsx_R32R8(reg,reg); … … 230 228 } 231 229 void ExtendTypeTo16(int type,int reg){ 232 if(type==DEF_SBYTE || ( Smoothie::IsUnicode()==false&&type==DEF_CHAR)){230 if(type==DEF_SBYTE || (compiler.IsUnicode()==false&&type==DEF_CHAR)){ 233 231 //movsx reg16,reg8 234 232 compiler.codeGenerator.op_movsx_R16R8(reg,reg);
Note:
See TracChangeset
for help on using the changeset viewer.