]> 4ch.mooo.com Git - 16.git/commitdiff
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 ce4249a08eb2320fec3bd706c48f78623b953cf4..19d19bc2e4eb643592a4a77ef66bfedc08b11cae 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 873c54b578d1a39d44a017106df480704c11c4ae..d2298adf55897e98fe28e1d42d60a7e4be164f0a 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 33f0ed4b0541840d591187f856cd650d09dd0e12..7d98271121e99e764a1375ba9ec30a3c1599717b 100644 (file)
Binary files a/scroll.exe and b/scroll.exe differ