Changeset 62 in dev for BasicCompiler64/Compile_Calc_PushVar.cpp
- Timestamp:
- Feb 22, 2007, 3:57:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_Calc_PushVar.cpp
r40 r62 27 27 obp+=sizeof(long); 28 28 } 29 } 30 else if( pRelativeVar->dwKind == VAR_REFGLOBAL ){ 31 SetError(300,NULL,cp); 29 32 } 30 33 else if(pRelativeVar->dwKind==VAR_LOCAL){ … … 109 112 } 110 113 } 114 else if( pRelativeVar->dwKind == VAR_REFGLOBAL ){ 115 SetError(300,NULL,cp); 116 } 111 117 else if(pRelativeVar->dwKind==VAR_LOCAL){ 112 118 if(pRelativeVar->bOffsetOffset){ … … 188 194 } 189 195 } 196 else if( pRelativeVar->dwKind == VAR_REFGLOBAL ){ 197 if(pRelativeVar->bOffsetOffset){ 198 //add r11,qword ptr[offset] 199 op_add_RM(sizeof(_int64),REG_R11,REG_NON,(int)pRelativeVar->offset,MOD_DISP32); 200 obp-=sizeof(long); 201 pobj_GlobalVarSchedule->add(); 202 obp+=sizeof(long); 203 } 204 else{ 205 //mov r11,qword ptr[offset] 206 op_mov_RM(sizeof(_int64),REG_R11,REG_NON,(int)pRelativeVar->offset,MOD_DISP32); 207 obp-=sizeof(long); 208 pobj_GlobalVarSchedule->add(); 209 obp+=sizeof(long); 210 } 211 212 goto directmem; 213 } 190 214 else if(pRelativeVar->dwKind==VAR_LOCAL){ 191 215 if(pRelativeVar->bOffsetOffset){
Note:
See TracChangeset
for help on using the changeset viewer.