From: sparky4 Date: Wed, 10 Dec 2014 14:23:26 +0000 (-0600) Subject: editted the xms library ww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=7402cbe9647bf3e9138b0b25933ae7169b23eb1d;p=16.git editted the xms library ww modified: scroll.exe modified: src/lib/xms.c modified: src/lib/xms.h modified: src/scroll.c --- diff --git a/scroll.exe b/scroll.exe index b34a5be5..3dcf363b 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/lib/xms.c b/src/lib/xms.c index fb428a54..09797210 100644 --- a/src/lib/xms.c +++ b/src/lib/xms.c @@ -149,7 +149,7 @@ void xmsfree(void huge * XMSPointer) } /* Write a memory report for debugging purposes */ -void xmsreport(FILE * stream) +void xmsreport(void/*FILE * stream*/) { int XMSVersionNumber = 0; unsigned int XMSLargestBlock = 0; @@ -174,8 +174,10 @@ void xmsreport(FILE * stream) mov [XMSTotal], dx } - fprintf(stream, "XMS Version number: %d\n", XMSVersionNumber); - fprintf(stream, "Largest available block: %d kB (%d kB total)\n", XMSLargestBlock, XMSTotal); + //fprintf(stream, "XMS Version number: %d\n", XMSVersionNumber); + //fprintf(stream, "Largest available block: %d kB (%d kB total)\n", XMSLargestBlock, XMSTotal); + printf("XMS Version number: %d\n", XMSVersionNumber); + printf("Largest available block: %d kB (%d kB total)\n", XMSLargestBlock, XMSTotal); } /*int main() diff --git a/src/lib/xms.h b/src/lib/xms.h index 100db362..b6587494 100644 --- a/src/lib/xms.h +++ b/src/lib/xms.h @@ -23,6 +23,6 @@ static XMSHandleMap allocMapXMS[MAX_XMS_ALLOCATIONS]; static int initxms(void); void huge * xmsmalloc(long unsigned int size); void xmsfree(void huge * XMSPointer); -void xmsreport(FILE * stream); +void xmsreport(void/*FILE * stream*/); #endif/*_XMS_H_*/ diff --git a/src/scroll.c b/src/scroll.c index 91aa8cd1..0f6284b2 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -476,8 +476,12 @@ void main() { printf("player.d: %d\n", player.d); printf("temporary player sprite 0: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=45556867\n"); printf("temporary player sprite 1: http://www.pixiv.net/member_illust.php?mode=medium&illust_id=44606385\n"); - printf("\n"); - xmsfree(&map); + printf("\n"); + xmsfree(&map); + xmsfree(bg); + xmsfree(spri); + xmsfree(mask); + xmsreport(); switch(detectcpu()) { case 0: cpus = "8086/8088 or 186/88"; break;