Changeset 228 in dev for trunk/abdev/BasicCompiler64/Compile_CallProc.cpp
- Timestamp:
- Jul 23, 2007, 3:24:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/Compile_CallProc.cpp
r226 r228 82 82 83 83 //call rax 84 OpBuffer[obp++]=(char)0xFF; 85 OpBuffer[obp++]=(char)0xD0; 84 compiler.codeGenerator.PutOld( 85 (char)0xFF, 86 (char)0xD0 87 ); 86 88 87 89 … … 361 363 //call qword ptr[r11+func_index] 362 364 if(i2*PTR_SIZE<=0x7F){ 363 OpBuffer[obp++]=(char)0x41; 364 OpBuffer[obp++]=(char)0xFF; 365 OpBuffer[obp++]=(char)0x53; 366 OpBuffer[obp++]=(char)(i2*PTR_SIZE); 365 compiler.codeGenerator.PutOld( 366 (char)0x41, 367 (char)0xFF, 368 (char)0x53, 369 (char)(i2*PTR_SIZE) 370 ); 367 371 } 368 372 else{ 369 OpBuffer[obp++]=(char)0x41; 370 OpBuffer[obp++]=(char)0xFF; 371 OpBuffer[obp++]=(char)0x93; 372 *((long *)(OpBuffer+obp))=i2*PTR_SIZE; 373 obp+=sizeof(long); 373 compiler.codeGenerator.PutOld( 374 (char)0x41, 375 (char)0xFF, 376 (char)0x93, 377 (long)(i2*PTR_SIZE) 378 ); 374 379 } 375 380 }
Note:
See TracChangeset
for help on using the changeset viewer.