1 ;-----------------------------------------------------------
\r
3 ; MXPN.ASM - Panning function
\r
4 ; Copyright (c) 1993,1994 by Alessandro Scotti
\r
6 ;-----------------------------------------------------------
\r
12 EXTRN mxWaitDisplay : FAR
\r
13 EXTRN mxStartAddress : FAR
\r
15 MX_TEXT SEGMENT USE16 PARA PUBLIC 'CODE'
\r
16 ASSUME cs:MX_TEXT, ds:NOTHING, es:NOTHING
\r
18 EXTRN mx_BytesPerLine : WORD
\r
20 ;-----------------------------------------------------------
\r
25 ; X, Y = new X, Y coordinates of view screen
\r
36 mul [mx_BytesPerLine]
\r
41 push ax ; Push the start address
\r
45 mov dx, 03DAh ; Set the pixel pan register
\r
50 mov al, BYTE PTR [X]
\r