[Coco] Size limit for loadm?

Don Barber don at dgb3.net
Wed Mar 9 07:21:09 EST 2022


Yeah I’m not moving the stack at all. I don’t think my code is getting run at all, the machine just locks or does the garble mess of a runaway stack before returning from loadm.

Sent from my iPhone

> On Mar 9, 2022, at 7:04 AM, Arthur Flexser <flexser at fiu.edu> wrote:
> 
> (On second thought, I'm pretty sure moving the stack below $e00 would cause
> Basic to give an ?OM error, out of memory.)
> 
> Art
> 
>> On Wed, Mar 9, 2022 at 6:30 AM Arthur Flexser <flexser at fiu.edu> wrote:
>> 
>> The stack is just below $8000, default is 200 bytes below.
>> 
>>> Isn’t the stack at $8000 by default so an 8k load would overwrite it?
>> 
>> I think you are confused about how much a K is.  One K equals 1024 bytes,
>> or $400 bytes.  $2000 is 8K, $8000 is 32K.  If your program is in fact
>> $8000 bytes or 32K, it would indeed overwrite the stack if you tried to
>> loadm it, unless you moved the stack to somewhere below $E00 that does not
>> cause Basic to crash, like the cassette buffer.
>> 
>> Art
>> 
>> Art
>> 
>>> On Wed, Mar 9, 2022 at 6:12 AM Don Barber <don at dgb3.net> wrote:
>>> 
>>> Sorry I wasn’t clear. I am using basics loadm. The io routines are chrout
>>> and chrin found around $a000 in the rom.
>>> 
>>> Isn’t the stack at $8000 by default so an 8k load would overwrite it?
>>> 
>>> Sent from my iPhone
>>> 
>>>> On Mar 9, 2022, at 2:48 AM, Robert Gault <robert.gault at att.net> wrote:
>>>> 
>>>> That should not be a problem but will depend on whether the program is
>>> self starting. If it is not self starting, you may need to PCLEAR some
>>> memory or adjust the location where Basic expects programs to be located.
>>>> It would help if you report any errors you are getting or exactly what
>>> problems you are seeing. What is your program supposed to be doing? Why do
>>> you want it to load at $E00? Is it a program or some type of data file?
>>>> You might even consider posting the source code for us to look at,
>>> test, and offer suggestions for getting it to work as desired.
>>>> Sent from AT&T Yahoo Mail on Android
>>>> 
>>>> On Tue, Mar 8, 2022 at 11:12 PM, Don Barber<don at dgb3.net> wrote:   Is
>>> there a size limit for .bin files loaded for disk? I’ve compiled an 8k
>>> .bin, with org set to $0e00, and with my own IO routines (so don’t even
>>> need to worry about overwriting the rom)…but getting weird issues on
>>> loading. I think I might be overwriting the return stack for the loadm
>>> call. Any advice?
>>>> Sent from my iPhone
>>>> 
>>>> --
>>>> Coco mailing list
>>>> Coco at maltedmedia.com
>>>> https://pairlist5.pair.net/mailman/listinfo/coco
>>>> 
>>>> 
>>>> --
>>>> Coco mailing list
>>>> Coco at maltedmedia.com
>>>> https://pairlist5.pair.net/mailman/listinfo/coco
>>> 
>>> 
>>> --
>>> Coco mailing list
>>> Coco at maltedmedia.com
>>> https://pairlist5.pair.net/mailman/listinfo/coco
>>> 
>> 
> 
> -- 
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco



More information about the Coco mailing list