[MN-dev] [mndiff]: r74 - trunk/vga600/vga600.asm

michael subversion at mplayerhq.hu
Fri Jul 6 01:07:15 CEST 2007


Author: michael
Date: Fri Jul  6 01:07:15 2007
New Revision: 74

Log:
version from 1997-06-28 20:18


Modified:
   trunk/vga600/vga600.asm

Modified: trunk/vga600/vga600.asm
==============================================================================
--- trunk/vga600/vga600.asm	(original)
+++ trunk/vga600/vga600.asm	Fri Jul  6 01:07:15 2007
@@ -561,29 +561,42 @@ ret
 
 FindSet_V:
  mul di                                      ; find new phys_lines
+ push di                                     ; save di
  mov [VDE-int10h],ax                         ; save(phys_lines) as new
  mov si,ax                                   ; save(phys_lines) in si
- push ax                                     ; save(phys_lines) to stack
+ mov di,ax                                   ; save(phys_lines) in di
  mul [WORD FPx_bor-int10h]                   ; find right-border-lenght
  div [WORD FPx_1_-int10h]                    ;could be replaced by shrd
+ cmp ax,di                                   ; check if no round-off error
+  jne FPx_bor_Ok
+ inc ax
+FPx_bor_Ok:
  mov bp,ax                                   ; save in bp
  add si,ax                                   ; add to old phys
  mov [VBS-int10h],si                         ; save in VBS
  inc si                                      ; inc it
  mov [VSS-int10h],si                         ; save in VSS
- pop ax
- push ax                                     ;get old phys from stack
+ mov ax,di                                   ;get old phys from di
  mul [WORD FPx_VS-int10h]                    ; find VS-lenght
  div [WORD FPx_1_-int10h]                    ;could be replaced by shrd
+ cmp ax,di                                   ; check if no round-off error
+  jne FPx_VS_Ok
+ inc ax
+FPx_VS_Ok:
  add si,ax                                   ;add it
  mov [VSE-int10h],si                         ; save in VSE
- pop ax                                      ;get old phys from stack
+ xchg di,ax                                  ;get old phys from di
  mul [WORD FPx_VB-int10h]                    ; find VB-lenght
  div [WORD FPx_1_-int10h]                    ;could be replaced by shrd
+ cmp ax,di                                   ; check if no round-off error
+  jne FPx_VB_Ok
+ inc ax
+FPx_VB_Ok:
  add si,ax                                   ;add it
  mov [VBE-int10h],si                         ; save in VBE
  add si,bp                                   ;add left-border-lenght
  mov [VT-int10h],si                          ; save in VT
+ pop di                                      ; restore di
 ret
 
 K_1             dw 1000
@@ -654,7 +667,7 @@ GetPath_NDot:
   jnz GetPath_Copy
  push cs
  pop ds                           ;restore ds
- mov [WORD bx+1],'KL'             ;fix COM -> CLK
+ mov [WORD bx+1],'KL'           
 
 
 



More information about the Mndiff-dev mailing list