c2e.convert_special: 0
e2c.convert_num: 0
-openfiles: /dos/z/16/16/dos_gfx.cpp:10793:10158:1:
-openfiles: /dos/z/16/16/dos_gfx.h:537:0:0:
-openfiles: /dos/z/16/16/dos_kb.c:953:406:0:
+openfiles: /dos/z/16/16/dos_gfx.cpp:10521:10066:1:
+openfiles: /dos/z/16/16/dos_gfx.h:764:0:0:
+openfiles: /dos/z/16/16/dos_kb.c:892:395:0:
openfiles: /dos/z/16/16/dos_kb.h:60:0:0:
openfiles: /dos/z/16/16/lib/lib_com.cpp:0:0:0:
openfiles: /dos/z/16/16/lib/lib_com.h:2523:1479:0:
openfiles: /dos/z/16/16/16.txt:0:0:0:
openfiles: /dos/z/16/16/lib/x/MXSM.ASM:12781:12781:0:
openfiles: /dos/z/16/16/lib/x/MODEX.H:1768:1601:0:
-openfiles: /dos/z/16/16/lib/x/MXPN.ASM:1205:434:0:
+openfiles: /dos/z/16/16/lib/x/MXPN.ASM:652:649:0:
snr_recursion_level: 0
convertcolumn_horizontally: 0
adv_open_matchname: 0
opendir: file:///dos/z/16/16/lib/x
wrap_text_default: 0
bookmarks_filename_mode: 1
-ssearch_text: rand
+ssearch_text: mxWaitDisplay
snr_casesens: 0
view_blocks: 1
name: project 16
htmlbar_view: 0
spell_lang: en
ssearch_dotmatchall: 0
-searchlist: 386
-searchlist: CRTC_INDEX
-searchlist: setVisiblePage
-searchlist: VisiblePage
-searchlist: lib/x/MXPN.ASM
-searchlist: 3c0
-searchlist: ABS
-searchlist: 3DAH
-searchlist: _DX
-searchlist: unsigned
-searchlist: word
searchlist: unsigned
searchlist: word
searchlist: play
searchlist: rand
+searchlist: x6
+searchlist: x86
+searchlist: 86
+searchlist: asm
+searchlist: size
+searchlist: SIZE
+searchlist: 80
+searchlist: size
+searchlist: widthBytes
+searchlist: size
+searchlist: mxWaitDisplay
autocomplete: 1
outputb_show_all_output: 0
bookmarks_show_mode: 0
mov al, 0x0D\r
mov dx, 0x3D4\r
out dx, ax\r
- }\r
+ }
+
+;-----------------------------------------------------------\r
+;\r
+; MXPN.ASM - Panning function\r
+; Copyright (c) 1993,1994 by Alessandro Scotti\r
+;\r
+;-----------------------------------------------------------\r
+;WARN PRO\r
+INCLUDE MODEX.DEF\r
+\r
+PUBLIC mxPan\r
+\r
+EXTRN mxWaitDisplay : FAR\r
+EXTRN mxStartAddress : FAR\r
+\r
+MX_TEXT SEGMENT USE16 PARA PUBLIC 'CODE'\r
+ ASSUME cs:MX_TEXT, ds:NOTHING, es:NOTHING\r
+\r
+EXTRN mx_BytesPerLine : WORD\r
+\r
+;-----------------------------------------------------------\r
+;\r
+; Moves the screen.\r
+;\r
+; Input:\r
+; X, Y = new X, Y coordinates of view screen\r
+; Output:\r
+; none\r
+;\r
+mxPan PROC FAR\r
+ ARG Y:WORD, \\r
+ X:WORD = ARG_SIZE\r
+ ASSUME ds:NOTHING\r
+ .enter 0\r
+\r
+ mov ax, [Y]\r
+ mul [mx_BytesPerLine]\r
+ mov dx, [X]\r
+ shr dx, 1\r
+ shr dx, 1\r
+ add ax, dx\r
+ push ax ; Push the start address\r
+ call mxWaitDisplay\r
+ call mxStartAddress\r
+\r
+ mov dx, 03DAh ; Set the pixel pan register\r
+ in al, dx\r
+ mov dx, 03C0h\r
+ mov al, 33h\r
+ out dx, al\r
+ mov al, BYTE PTR [X]\r
+ and al, 3\r
+ shl al, 1\r
+ out dx, al\r
+\r
+ xor ax, ax\r
+ .leave ARG_SIZE\r
+mxPan ENDP\r
+\r
+MX_TEXT ENDS\r
+END\r
+
+\r
}
//Procedure Play;\r