OSDN Git Service

modified: Project 16.bfproject
authorsparky4 <sparky4@cock.li>
Mon, 24 Nov 2014 20:58:20 +0000 (14:58 -0600)
committersparky4 <sparky4@cock.li>
Mon, 24 Nov 2014 20:58:20 +0000 (14:58 -0600)
modified:   scroll.c
modified:   scroll.exe

Project 16.bfproject
scroll.c
scroll.exe

index ce4249a..19d19bc 100644 (file)
@@ -1,7 +1,7 @@
 c2e.convert_special: 0
 e2c.convert_num: 0
 openfiles: /dos/z/16/doc/project.txt:60:0:0:
-openfiles: /dos/z/16/scroll.c:4879:4341:1:
+openfiles: /dos/z/16/scroll.c:9751:9231:0:
 openfiles: /dos/z/16/modex16.c:6319:6141:0:
 openfiles: /dos/z/16/modex16.h:1057:344:0:
 openfiles: /dos/z/16/pcxtest.c:795:442:0:
@@ -10,6 +10,8 @@ openfiles: /dos/z/16/dos_kb.h:464:0:0:
 openfiles: /dos/z/16/lib/lib_head.h:1738:1885:0:
 openfiles: /dos/z/16/README:668:0:0:
 openfiles: /dos/z/16/makefile:181:123:0:
+openfiles: /dos/z/keen-src/id_mm.c:2128:1591:1:
+openfiles: /dos/z/keen-src/id_mm.h:0:0:0:
 snr_recursion_level: 0
 convertcolumn_horizontally: 0
 adv_open_matchname: 0
@@ -21,7 +23,7 @@ view_left_panel: 0
 default_mime_type: text/plain
 e2c.convert_xml: 1
 c2e.convert_iso: 0
-opendir: file:///dos/z/16
+opendir: file:///dos/z/keen-src
 wrap_text_default: 0
 bookmarks_filename_mode: 1
 ssearch_text: enter
@@ -56,8 +58,6 @@ ssearch_regex: 0
 e2c.convert_iso: 0
 ssearch_casesens: 0
 charmap_block: 1
-recent_files: file:///dos/z/16/16/scrasm/MAIN.ASM
-recent_files: file:///dos/z/16/16/lib/x/MXBB.ASM
 recent_files: file:///dos/z/16/src/lib/dos_gfx.h
 recent_files: file:///dos/z/16/16/lib/intro/lib.c
 recent_files: file:///dos/z/16/src/lib/dos_gfx.cpp
@@ -106,6 +106,8 @@ recent_files: file:///dos/z/16/modex16.c
 recent_files: file:///dos/z/16/scroll.c
 recent_files: file:///dos/z/16/README
 recent_files: file:///dos/z/16/makefile
+recent_files: file:///dos/z/keen-src/id_mm.h
+recent_files: file:///dos/z/keen-src/id_mm.c
 snr_replacetype: 0
 savedir: file:///dos/z/16
 spell_check_default: 1
index 873c54b..d2298ad 100644 (file)
--- a/scroll.c
+++ b/scroll.c
@@ -55,6 +55,8 @@ void mapDrawRow(map_view_t *mv, int tx, int ty, word y);
 void mapDrawCol(map_view_t *mv, int tx, int ty, word x);
 void animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */short d1, short d2, int x, int y, int ls, int lp, bitmap_t *bmp);
 
+void ma();
+
 #define TILEWH 16
 #define QUADWH (TILEWH/4)
 #define SPEED 4
@@ -84,6 +86,7 @@ void main() {
        /* draw the tiles */
        ptr = map.data;
        ptmp = bitmapLoadPcx("ptmp.pcx"); // load sprite
+       ma();
        modexEnter();
        modexPalUpdate(ptmp.palette);
        screen = modexDefaultPage();
@@ -589,3 +592,15 @@ animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */short d1,
        //turn this off if XT
        modexWaitBorder();
 }
+
+void ma()
+{
+       int dos_memavail;
+       __asm {
+               mov bx,0ffffh\r
+               mov ah,48h\r
+               int 21h\r
+               mov dos_memavail,bx
+       }
+       printf("\n%d\n", dos_memavail);
+}
index 33f0ed4..7d98271 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ