Changeset 276 in dev for trunk/abdev/BasicCompiler_Common/src/NativeCode.cpp
- Timestamp:
- Aug 12, 2007, 1:25:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/NativeCode.cpp
r273 r276 6 6 #define BREAK_EIP(checkEip) (obp+0x00401000>=checkEip) 7 7 8 void ObpPlus( int step ) 9 { 10 extern int obp; 11 obp += step; 12 13 // 例:epi=0x00401999 14 if( BREAK_EIP(0x00433FD7) ) 15 { 16 int test=0; 17 } 18 } 19 20 void NativeCode::Put( const NativeCode &nativeCode, bool isOpBuffer ) 8 void NativeCode::Put( const NativeCode &nativeCode ) 21 9 { 22 10 long baseOffset = size; 23 11 24 12 // コードバッファを追加 25 Put( nativeCode.codeBuffer, nativeCode.size , isOpBuffer);13 Put( nativeCode.codeBuffer, nativeCode.size ); 26 14 27 15 // スケジュールを追加 … … 64 52 *((long *)(codeBuffer+size))=0; 65 53 size += sizeof(long); 66 67 68 69 // 未完成70 if( isCall )71 {72 pobj_SubAddrSchedule->add(pUserProc,1);73 }74 else75 {76 pobj_SubAddrSchedule->add(pUserProc,0);77 }78 extern char *OpBuffer;79 extern int obp;80 *((long *)(OpBuffer+obp))=0;81 ObpPlus( sizeof(long) );82 54 } 83 55 … … 90 62 *((long *)(codeBuffer+size))=0; 91 63 size += sizeof(long); 92 93 94 95 // 未完成96 pobj_ImportAddrSchedule->add(pDllProc);97 extern char *OpBuffer;98 extern int obp;99 *((long *)(OpBuffer+obp))=0;100 ObpPlus( sizeof(long) );101 64 } 102 65
Note:
See TracChangeset
for help on using the changeset viewer.