Browse Source

* fix modrm for r13, it has the same limitations as rbp

git-svn-id: trunk@3944 -
peter 19 years ago
parent
commit
3167d18e6b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      compiler/x86/aasmcpu.pas

+ 2 - 1
compiler/x86/aasmcpu.pas

@@ -1556,8 +1556,9 @@ implementation
            else
             exit;
            end;
+           { If rbp or r13 is used we must always include an offset }
            if (br=NR_NO) or
-              ((br<>NR_RBP) and (o=0) and (sym=nil)) then
+              ((br<>NR_RBP) and (br<>NR_R13) and (o=0) and (sym=nil)) then
             md:=0
            else
             if ((o>=-128) and (o<=127) and (sym=nil)) then