]> 4ch.mooo.com Git - 16.git/blobdiff - scroll.c
modified: Project 16.bfproject
[16.git] / scroll.c
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);
+}