소스 검색

* load only the low byte of CurrentColor in DirectPutPixelX

git-svn-id: trunk@41055 -
nickysn 6 년 전
부모
커밋
3e22a0625f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/graph/src/msdos/graph.pp

+ 1 - 1
packages/graph/src/msdos/graph.pp

@@ -2725,7 +2725,7 @@ const CrtAddress: word = 0;
    shl ah, cl                ; (* Get Plane Select Value           *)
    out dx, ax
  (* End selection of plane *)
-   mov ax,[CurrentColor]     ; { only lower byte is used. }
+   mov al, byte ptr [CurrentColor] ; { only lower byte is used. }
    cmp [CurrentWriteMode],XORPut   { check write mode   }
    jne @MOVMode
    mov ah,es:[di]        { read the byte...             }