Changeset 262 in dev for trunk/abdev/BasicCompiler64/CodeGenerator.cpp
- Timestamp:
- Aug 4, 2007, 4:36:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/CodeGenerator.cpp
r255 r262 1695 1695 1696 1696 void 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 ); 1702 1699 } 1703 1700 void 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 ); 1710 1704 } 1711 1705 void CodeGenerator::op_ret(){ 1712 1706 pNativeCode->Put( (char)0xC3 ); 1713 1707 } 1708 void 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.