]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/Project 16.bfproject
authorsparky4 <sparky4@4ch.maidlab.jp>
Mon, 19 May 2014 12:53:46 +0000 (07:53 -0500)
committersparky4 <sparky4@4ch.maidlab.jp>
Mon, 19 May 2014 12:53:46 +0000 (07:53 -0500)
modified:   16/dos_gfx.cpp

16/Project 16.bfproject
16/dos_gfx.cpp

index 33f3135ba68a7d244206bb5ef88b7ebc186e8cbf..e408d4291cf3a02f3d01e09ed70d7a105c3640a2 100644 (file)
@@ -1,8 +1,8 @@
 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:
@@ -11,7 +11,7 @@ openfiles: /dos/z/16/16/project16.txt:1675:0: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
@@ -26,7 +26,7 @@ c2e.convert_iso: 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
@@ -84,21 +84,21 @@ snr_escape_chars: 0
 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
index 2f2607baf9cbe4d25484831c6894211806d3c0c0..cd45ae844c027764f7d62e89d2339b2b91b62139 100644 (file)
@@ -338,7 +338,70 @@ void MoveTo (word X, word Y) {
     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