From: sparky4 Date: Tue, 9 Dec 2014 18:47:55 +0000 (-0600) Subject: added XMS support from a small XMS library X-Git-Url: http://4ch.mooo.com/gitweb/?p=16.git;a=commitdiff_plain;h=c65036a45d017893c61732b55c97975784d0bd23 added XMS support from a small XMS library Needs to clean up after itself when quiting! modified: scroll.exe modified: src/scroll.c --- diff --git a/scroll.exe b/scroll.exe index e240c28d..1dc1f92c 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/scroll.c b/src/scroll.c index c214348e..5cde23b3 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -452,7 +452,7 @@ void main() { nosound(); } if(player.q == (TILEWH/SPEED)+1 && player.d > 0 && (player.triggerx == 5 && player.triggery == 5)){ player.hp--; } - if(keyp(0x0E)) while(1){ if(xmsmalloc(24)) break; } + //if(keyp(0x0E)) while(1){ if(xmsmalloc(24)) break; } } /* fade back to text mode */ @@ -475,7 +475,8 @@ 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"); + printf("\n"); + xmsfree(&map); switch(detectcpu()) { case 0: cpus = "8086/8088 or 186/88"; break;