[Coco] The cobbler "problem"

Allen Huffman alsplace at pobox.com
Sun Jan 25 03:00:32 EST 2015


> On Jan 25, 2015, at 1:54 AM, Allen Huffman <alsplace at pobox.com> wrote:
> 
> Scratch that ... I just found something that will prevent cobbler from ever working on a hard drive:
> 
> * Request memory for the FAT buffer + 256 bytes for stack space R.G.
>         ldd	<DD.MAP
>         addd	#size+256
>         os9	F$Mem
>         lbcs	NoMem
> 
> On a fully loaded hard drive, the FAT is $FFFF, and you can't allocate 64K from the 64K workspace. I don't get the actual error message, though. Mine ends up failing with "Error - can't link to Rel module" followed by a #207.


Haha, I just realized why it doesn't give me that first error. If DD.MAP is $FFFF, and it then does "addd #65535+256", it's rolling over in the 16-bit register and only allocating 256 bytes.

Yes. That explains much of the weirdness.

I'll get back to my BASIC09 program instead.

		-- A





More information about the Coco mailing list