mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 00:09:25 +02:00
* do the view port adjustment in asm instead of pascal in the asm version of
GetPixel320 git-svn-id: trunk@40916 -
This commit is contained in:
parent
8c1de487c5
commit
9745c6434a
@ -2282,8 +2282,6 @@ End;
|
||||
{$else asmgraph}
|
||||
Function GetPixel320(X,Y: smallint):ColorType;
|
||||
Begin
|
||||
X:= X + StartXViewPort;
|
||||
Y:= Y + StartYViewPort;
|
||||
asm
|
||||
{$ifdef FPC_MM_HUGE}
|
||||
mov ax, SEG SegA000
|
||||
@ -2293,7 +2291,9 @@ End;
|
||||
mov es, [SegA000]
|
||||
{$endif FPC_MM_HUGE}
|
||||
mov ax, [Y]
|
||||
add ax, [StartYViewPort]
|
||||
mov di, [X]
|
||||
add di, [StartXViewPort]
|
||||
xchg ah, al { The value of Y must be in AH }
|
||||
add di, ax
|
||||
shr ax, 1
|
||||
|
Loading…
Reference in New Issue
Block a user