From: sparky4 Date: Wed, 7 Jun 2017 22:53:13 +0000 (-0500) Subject: farcoreleft() is now flexible <3 going to code later like a few days from now later X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=6d3a534d99c0974a14d674862566ba1fbfda5fb8;p=16.git farcoreleft() is now flexible <3 going to code later like a few days from now later --- diff --git a/src/lib/16_hc.c b/src/lib/16_hc.c index 3bd47bb8..1d6bd4cb 100755 --- a/src/lib/16_hc.c +++ b/src/lib/16_hc.c @@ -51,6 +51,7 @@ long HC_Newfarcoreleft() } #endif +//from: https://stackoverflow.com/questions/14386856/c-check-available-ram void #ifdef __BORLANDC__ * @@ -117,6 +118,7 @@ HC_LargestFreeBlock(size_t* Size) return p; } +//from: https://stackoverflow.com/questions/14386856/c-check-available-ram size_t HC_coreleft(void) { size_t total = 0; @@ -161,6 +163,7 @@ size_t HC_coreleft(void) return total; } +//far version of above void far* HC_LargestFarFreeBlock(unsigned long* Size) { unsigned long s0, s1; @@ -190,6 +193,7 @@ void far* HC_LargestFarFreeBlock(unsigned long* Size) return p; } +//far version of above unsigned long HC_farcoreleft(void) { unsigned long total = 0UL;