Ignore:
Timestamp:
Jul 27, 2007, 12:14:00 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r240 r244  
    11831183
    11841184    pNativeCode->Put( (char)0xE8 );
    1185     pobj_SubAddrSchedule->add(pUserProc,1);
    1186     pNativeCode->Put( (long)0 );
     1185    pNativeCode->PutUserProcSchedule( pUserProc, true );
    11871186}
    11881187void CodeGenerator::op_ret(){
     
    11941193    pNativeCode->Put( stackFrameSize );
    11951194}
     1195void CodeGenerator::op_addressof( int reg, const UserProc *pUserProc )
     1196{
     1197    //mov reg,userProcAddress
     1198
     1199    //オペコード、レジスタ
     1200    pNativeCode->Put( (char)(0xB8|REGISTER_OPERAND(reg)) );
     1201
     1202    //DISP32
     1203    pNativeCode->PutUserProcSchedule( pUserProc, false );
     1204}
Note: See TracChangeset for help on using the changeset viewer.