Ignore:
Timestamp:
Jul 25, 2007, 11:54:20 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r234 r235  
    710710void CodeGenerator::op_push_M( int base_reg )
    711711{
    712     // push dword ptr[base_reg]
    713     __op_format( (char)0xFF, (char)0x30, base_reg );
     712    if( base_reg == REG_EBP )
     713    {
     714        op_push_M( base_reg, 0 );
     715    }
     716    else
     717    {
     718        // push dword ptr[base_reg]
     719        __op_format( (char)0xFF, (char)0x30, base_reg );
     720    }
    714721}
    715722void CodeGenerator::op_push_M( int base_reg, long offset, Schedule::Type scheduleType )
     
    11581165/////////////////////////////
    11591166
     1167void CodeGenerator::op_call_R( int reg )
     1168{
     1169    // call reg
     1170    pNativeCode->Put( (char)0xFF );
     1171    pNativeCode->Put( (char)(0xD0|REGISTER_OPERAND(reg)) );
     1172}
    11601173void CodeGenerator::op_call(const UserProc *pUserProc){
    11611174    pUserProc->Using();
Note: See TracChangeset for help on using the changeset viewer.