浏览代码

* 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 6 年之前
父节点
当前提交
5655b04b1c
共有 1 个文件被更改,包括 2 次插入3 次删除
  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  AX, 0013h
-     MOV  BL, DontClearGraphMemory
-     OR   BL,BL
-     JZ   @L2
+     CMP  BYTE PTR [DontClearGraphMemory],0
+     JE   @L2
      OR   AX, 080h
   @L2:
      push ds