Ignore:
Timestamp:
Jul 25, 2007, 12:17:24 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r234 r236  
    137137
    138138        //imul eax,i4
    139         OpBuffer[obp++]=(char)0x69;
    140         OpBuffer[obp++]=(char)0xC0;
    141         *((long *)(OpBuffer+obp))=i4;
    142         obp+=sizeof(long);
     139        compiler.codeGenerator.op_imul_RV( REG_EAX, i4 );
    143140
    144141        //add dword ptr[esp],eax
     
    154151
    155152    //imul eax,TypeSize
    156     OpBuffer[obp++]=(char)0x69;
    157     OpBuffer[obp++]=(char)0xC0;
    158     *((long *)(OpBuffer+obp)) = type.GetSize();
    159     obp+=sizeof(long);
     153    compiler.codeGenerator.op_imul_RV( REG_EAX, type.GetSize() );
    160154
    161155    //pop ecx
Note: See TracChangeset for help on using the changeset viewer.