Ignore:
Timestamp:
Aug 4, 2007, 4:36:34 AM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r255 r262  
    16951695
    16961696void CodeGenerator::op_call( const UserProc *pUserProc ){
    1697     pUserProc->Using();
    1698 
    1699     pNativeCode->Put(  (char)0xE8 );
    1700     pobj_SubAddrSchedule->add( pUserProc, 1 );
    1701     pNativeCode->Put( (long)0 );
     1697    pNativeCode->Put( (char)0xE8 );
     1698    pNativeCode->PutUserProcSchedule( pUserProc, true );
    17021699}
    17031700void CodeGenerator::op_call( const DllProc *pDllProc ){
    1704     pDllProc->Using();
    1705 
    1706     pNativeCode->Put(  (char)0xFF );
    1707     pNativeCode->Put(  (char)0x15 );
    1708     pobj_ImportAddrSchedule->add(pDllProc);
    1709     pNativeCode->Put( (long)0 );
     1701    pNativeCode->Put( (char)0xFF );
     1702    pNativeCode->Put( (char)0x15 );
     1703    pNativeCode->PutDllProcSchedule( pDllProc );
    17101704}
    17111705void CodeGenerator::op_ret(){
    17121706    pNativeCode->Put( (char)0xC3 );
    17131707}
     1708void CodeGenerator::op_addressof( int reg, const UserProc *pUserProc )
     1709{
     1710    //mov reg,userProcAddress
     1711
     1712    //オペコード、レジスタ
     1713    pNativeCode->Put( (char)(0xB8|REGISTER_OPERAND(reg)) );
     1714
     1715    //DISP32
     1716    pNativeCode->PutUserProcSchedule( pUserProc, false );
     1717}
Note: See TracChangeset for help on using the changeset viewer.