Date : Wed, 07 Jan 2009 19:23:48 +0000 (GMT)
From : info@... (Sprow)
Subject: OSHWM / HIMEM question
In article <4964FB43.2060108@...>,
Phill Harvey-Smith <afra@...> wrote:
> Am I correct in asuming that OSHWM and HIMEM will only ever be on a page
> boundry ? If this is the case then the amount of free memory will always
> be an exact number of pages which will make things simpler for me.
OSHWM yes, page aligned.
HIMEM no, it's a BASIC concept and can be set to whatever you feel like. The
OS gives BASIC its first guess at what to set HIMEM to as being the bottom
of screen RAM which happens to be page aligned. On MiniB, whose screen RAM
is only 160 bytes it isn't.
You can round down the screen RAM base by setting the low byte to zero
though of course,
Sprow.