Ignore:
Timestamp:
Jun 24, 2007, 6:50:40 PM (17 years ago)
Author:
dai_9181
Message:
 
File:
1 edited

Legend:

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

    r121 r183  
     1#include <jenga/include/smoothie/Smoothie.h>
     2
    13#include "../BasicCompiler_Common/common.h"
    24#include "Opcode.h"
     
    213215}
    214216void ExtendTypeTo32(int type,int reg){
    215     if(type==DEF_INTEGER || (isUnicode&&type==DEF_CHAR)){
     217    if(type==DEF_INTEGER || (Smoothie::IsUnicode()&&type==DEF_CHAR)){
    216218        //movsx reg32,reg16
    217219        op_movsx_R32R16(reg,reg);
     
    221223        op_and_RV(reg,(int)0x0000FFFF);
    222224    }
    223     else if(type==DEF_SBYTE || (isUnicode==false&&type==DEF_CHAR)){
     225    else if(type==DEF_SBYTE || (Smoothie::IsUnicode()==false&&type==DEF_CHAR)){
    224226        //movsx reg32,reg8
    225227        op_movsx_R32R8(reg,reg);
     
    231233}
    232234void ExtendTypeTo16(int type,int reg){
    233     if(type==DEF_SBYTE || (isUnicode==false&&type==DEF_CHAR)){
     235    if(type==DEF_SBYTE || (Smoothie::IsUnicode()==false&&type==DEF_CHAR)){
    234236        //movsx reg16,reg8
    235237        op_movsx_R16R8(reg,reg);
Note: See TracChangeset for help on using the changeset viewer.