Changeset 237 in dev for trunk/abdev/BasicCompiler32/Compile_Var.cpp
- Timestamp:
- Jul 26, 2007, 3:58:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Var.cpp
r236 r237 845 845 846 846 //mov eax,DataPos 847 OpBuffer[obp++]=(char)0xB8; 848 *((long *)(OpBuffer+obp))=(long)i2; 849 pobj_DataTableSchedule->add(); 850 obp+=sizeof(long); 847 compiler.codeGenerator.op_mov_RV( REG_EAX, i2, Schedule::DataTable ); 851 848 852 849 //mov dword ptr[offset],eax … … 978 975 979 976 //mov dword ptr[ebp+offset],eax 980 compiler.codeGenerator.op_mov_MR( sizeof(long), REG_EAX, REG_EBP, offset, Schedule::LocalVar );977 compiler.codeGenerator.op_mov_MR( sizeof(long), REG_EAX, REG_EBP, offset, MOD_BASE_DISP32, Schedule::LocalVar ); 981 978 } 982 979 else if( type.IsSingle() ){ … … 1001 998 1002 999 //mov dword ptr[ebp+offset],eax 1003 compiler.codeGenerator.op_mov_MR( sizeof(long), REG_EAX, REG_EBP, offset, Schedule::LocalVar );1000 compiler.codeGenerator.op_mov_MR( sizeof(long), REG_EAX, REG_EBP, offset, MOD_BASE_DISP32, Schedule::LocalVar ); 1004 1001 } 1005 1002 else if( type.IsDWord() || type.IsLong() || type.IsPointer() ){ … … 1013 1010 1014 1011 //mov eax,DataPos 1015 OpBuffer[obp++]=(char)0xB8; 1016 *((long *)(OpBuffer+obp))=(long)i2; 1017 pobj_DataTableSchedule->add(); 1018 obp+=sizeof(long); 1012 compiler.codeGenerator.op_mov_RV( REG_EAX, i2, Schedule::DataTable ); 1019 1013 } 1020 1014 else{
Note:
See TracChangeset
for help on using the changeset viewer.