Date : Sat, 27 Nov 2004 21:08:49 +0000 (GMT)
From : Greg Cook <debounce@...>
Subject: Re: ...at line ___
On Sat, 27 Nov 2004 00:58:29 +0000 (GMT), Andrew W wrote:
> I'm going to have to go check the addresses again as I've got three
> separate blocks that I load in with *Load and the errors that are
> being thrown up are very strange. For example if I add something to
> the listing (BASIC), the code works
> but if I remove it then it produces this error. If I remove something
> of a different size from the listing then the program can freeze.
Watch for the well-known memory leak regarding growing strings. It
disappears when the string in question is right below VARTOP so it can
be intermittent depending on program contents - a heisenbug, if you
will.
> On doing DIM A%-1 and P.HIMEM-A% I get a value of over 4K so at least
> I think I aven't over-run the free memory available (don't think the
> BASIC stack is being used intensively either).
If possible print this value out before each CALL to confirm there is
free memory.
> All I can think of is
> that the 3 machine code routin
> es are overlapping.
The disc filing system always loads whole sectors, so if the sections
are loaded in non-ascending order memory can be corrupted. Discovered
while trying to transfer Hunkidory to disc...
[Brian Widdas]
> > BRK:BRK:BRK
...must... resist... Swedish... chef... joke.
Greg
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com