Posted By
 Csabo on 2025-03-09 09:19:24
| Re: Out of Memory
Not setting the pointers correctly will definitely prevent your program from running. Each of these pointers should always be higher than the one before (or equal):
$2B-$2C: Start of BASIC program $2D-$2E: Start of variables (End of BASIC program +1) $2F-$30: Start of arrays (End of variables +1) $31-$32: End of arrays (Start of free RAM)
Your program starts at $3801 and ends at $XXYY, you should set $2D-$2E to YY XX, and same for $2F-$30, $31-$32. Then, as you allocate variables, the BASIC interpreter will take care of updating those normally. |