Ignore:
Timestamp:
Jul 25, 2007, 12:17:24 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler32/CodeGenerator.cpp

    r235 r236  
    783783/////////////////////
    784784void 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 );
    790787}
    791788void CodeGenerator::op_cmp_value(int op_size,int reg,char byte_data){
Note: See TracChangeset for help on using the changeset viewer.