瀏覽代碼

* adjust the set base for i8086 before loading it into cx as a shift count

git-svn-id: trunk@32590 -
Jonas Maebe 9 年之前
父節點
當前提交
ab22aaa2b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/x86/nx86set.pas

+ 1 - 1
compiler/x86/nx86set.pas

@@ -540,12 +540,12 @@ implementation
                else
                 begin
 {$ifdef i8086}
+                  register_maybe_adjust_setbase(current_asmdata.CurrAsmList,left.location,setbase);
                   cg.getcpuregister(current_asmdata.CurrAsmList,NR_CX);
                   if TCGSize2Size[left.location.size] > 2 then
                     left.location.size := OS_16;
                   cg.a_load_loc_reg(current_asmdata.CurrAsmList,OS_16,left.location,NR_CX);
 
-                  register_maybe_adjust_setbase(current_asmdata.CurrAsmList,left.location,setbase);
                   if (tcgsize2size[right.location.size] < 2) or
                      (right.location.loc = LOC_CONSTANT) then
                     hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,right.resultdef,u16inttype,true);