Changeset 236 in dev for trunk/abdev/BasicCompiler32/CodeGenerator.cpp
- Timestamp:
- Jul 25, 2007, 12:17:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/CodeGenerator.cpp
r235 r236 783 783 ///////////////////// 784 784 void CodeGenerator::op_cmp_RR( int reg1, int reg2 ){ 785 //オペコード 786 pNativeCode->Put( (char)0x3B ); 787 788 //レジスタ 789 pNativeCode->Put( (char)(0xC0| REGISTER_OPERAND(reg1)<<3 | REGISTER_OPERAND(reg2)) ); 785 //cmp reg1,reg2 786 __op_format( (char)0, (char)0x3B, 0, reg1, reg2, 0, MOD_REG ); 790 787 } 791 788 void CodeGenerator::op_cmp_value(int op_size,int reg,char byte_data){
Note:
See TracChangeset
for help on using the changeset viewer.