Ver Fonte

* use 'cmp mem,const' to check DontClearGraphMemory, instead of first loading it
into a register in InitModeX. This saves 1 byte of code from an initialization
routine. Hurrah! :)

git-svn-id: trunk@40977 -

nickysn há 6 anos atrás
pai
commit
5655b04b1c
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      packages/graph/src/msdos/graph.pp

+ 2 - 3
packages/graph/src/msdos/graph.pp

@@ -2401,9 +2401,8 @@ const CrtAddress: word = 0;
      MOV CRTAddress,DX
      MOV CRTAddress,DX
 
 
      MOV  AX, 0013h
      MOV  AX, 0013h
-     MOV  BL, DontClearGraphMemory
-     OR   BL,BL
-     JZ   @L2
+     CMP  BYTE PTR [DontClearGraphMemory],0
+     JE   @L2
      OR   AX, 080h
      OR   AX, 080h
   @L2:
   @L2:
      push ds
      push ds