Ignore:
Timestamp:
Jul 26, 2007, 3:58:18 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler32/Compile_Var.cpp

    r236 r237  
    845845
    846846            //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 );
    851848
    852849            //mov dword ptr[offset],eax
     
    978975
    979976        //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 );
    981978    }
    982979    else if( type.IsSingle() ){
     
    1001998
    1002999        //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 );
    10041001    }
    10051002    else if( type.IsDWord() || type.IsLong() || type.IsPointer() ){
     
    10131010
    10141011            //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 );
    10191013        }
    10201014        else{
Note: See TracChangeset for help on using the changeset viewer.