浏览代码

* 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 年之前
父节点
当前提交
6f20627220
共有 1 个文件被更改,包括 3 次插入3 次删除
  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