فهرست منبع

* slight accuracy improvement in crt.delay for i8086-msdos

git-svn-id: trunk@24749 -
nickysn 12 سال پیش
والد
کامیت
40630a7cde
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      rtl/msdos/crt.pp

+ 2 - 2
rtl/msdos/crt.pp

@@ -454,16 +454,16 @@ label
 asm
 asm
         mov     ax, $40
         mov     ax, $40
         mov     es, ax
         mov     es, ax
-        mov     di, $6c
+        xor     di, di
 
 
         mov     cx, MS
         mov     cx, MS
         test    cx, cx
         test    cx, cx
         jz      LDelay2
         jz      LDelay2
         mov     si, [DelayCnt + 2]
         mov     si, [DelayCnt + 2]
+        mov     bx, es:[di]
 LDelay1:
 LDelay1:
         mov     ax, [DelayCnt]
         mov     ax, [DelayCnt]
         mov     dx, si
         mov     dx, si
-        mov     bx, es:[di]
         call    DelayLoop
         call    DelayLoop
         loop    LDelay1
         loop    LDelay1
 LDelay2:
 LDelay2: