Browse Source

* Use rip-relative offsets in assembler, fixes linking text mode IDE with internal linker. The better way would be to get rid of this assembler altogether.

git-svn-id: trunk@19149 -
sergei 14 years ago
parent
commit
6f20627220
1 changed files with 3 additions and 3 deletions
  1. 3 3
      rtl/win/video.pp

+ 3 - 3
rtl/win/video.pp

@@ -578,9 +578,9 @@ begin
         pushq   %rsi
         pushq   %rdi
         xorq    %rcx,%rcx  
-        movq    VideoBuf,%rsi
-        movq    OldVideoBuf,%rdi
-        movl    VideoBufSize,%ecx
+        movq    VideoBuf(%rip),%rsi
+        movq    OldVideoBuf(%rip),%rdi
+        movl    VideoBufSize(%rip),%ecx
         shrq    $2,%rcx
         repe
         cmpsl