[Coco] Small OS-9 drivers taking up 16K after loaded

Roger Taylor operator at coco3.com
Mon Mar 29 00:45:16 EDT 2010


At 10:43 PM 3/28/2010, you wrote:

>I have a question concerning drivers that use the RBF system.  If 
>the modules are loaded from the prompt, even if merged into one 
>module and occupying only $2AA bytes of code, why would there be a 
>drop from 24k free memory to 8k?  16k has been eaten instead of 
>8k.  The driver doesn't use anywhere near enough memory to exceed 
>1K, let alone 8K.  Does any code or memory from RBF also get allocated?
>
>24k free
>
>merge drivepak.dr drivepak_h0.dd drivepak_h1.dd >dp
>(dp is $2AA bytes)
>attr dp e pe
>load dp
>
>now 8k free
>attempting to even use "dir" now produces the error #207 memory error
>
>as expected, unlinking dp gives me my memory back
>
>I'm going to try using ded to merge these into os9boot and test them that way.

Well, I thought "ded" was an os9boot file editor.  Never mind.

So, I merged os9boot and my drivers onto another disk, deleted 
/dd/os9boot, then copied the new os9boot file over to /dd, ident 
os9boot shows my drivers, but after booting up, the 3 drivers are not 
in RAM.  This leads me to believe that fragmented os9boot files are 
not supported, and the load process breaks.  I thought NitrOS-9 
handled this.  The file is still at sector $0B.



-- 
~ Roger Taylor





More information about the Coco mailing list