Changeset 235 in dev for trunk/abdev/BasicCompiler32/CodeGenerator.cpp
- Timestamp:
- Jul 25, 2007, 11:54:20 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/CodeGenerator.cpp
r234 r235 710 710 void CodeGenerator::op_push_M( int base_reg ) 711 711 { 712 // push dword ptr[base_reg] 713 __op_format( (char)0xFF, (char)0x30, base_reg ); 712 if( base_reg == REG_EBP ) 713 { 714 op_push_M( base_reg, 0 ); 715 } 716 else 717 { 718 // push dword ptr[base_reg] 719 __op_format( (char)0xFF, (char)0x30, base_reg ); 720 } 714 721 } 715 722 void CodeGenerator::op_push_M( int base_reg, long offset, Schedule::Type scheduleType ) … … 1158 1165 ///////////////////////////// 1159 1166 1167 void CodeGenerator::op_call_R( int reg ) 1168 { 1169 // call reg 1170 pNativeCode->Put( (char)0xFF ); 1171 pNativeCode->Put( (char)(0xD0|REGISTER_OPERAND(reg)) ); 1172 } 1160 1173 void CodeGenerator::op_call(const UserProc *pUserProc){ 1161 1174 pUserProc->Using();
Note:
See TracChangeset
for help on using the changeset viewer.