From: sparky4 Date: Mon, 24 Nov 2014 20:58:20 +0000 (-0600) Subject: modified: Project 16.bfproject X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=767f0dbaff40c0ff2ba5bbaf7016da0c5f3a450a;p=16.git modified: Project 16.bfproject modified: scroll.c modified: scroll.exe --- diff --git a/Project 16.bfproject b/Project 16.bfproject index ce4249a0..19d19bc2 100644 --- a/Project 16.bfproject +++ b/Project 16.bfproject @@ -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 diff --git a/scroll.c b/scroll.c index 873c54b5..d2298adf 100644 --- 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 + mov ah,48h + int 21h + mov dos_memavail,bx + } + printf("\n%d\n", dos_memavail); +} diff --git a/scroll.exe b/scroll.exe index 33f0ed4b..7d982711 100644 Binary files a/scroll.exe and b/scroll.exe differ