Frequently Asked Questions about the Sinclair ZX81
This is designed to be a simple set of questions and answers - please no general chit chat in here - keep it focused to help new users!
- Posts: 129
- Joined: Sat Nov 27, 2010 6:05 pm
Can anyone tell me what combination of peeks will tell me how much memory I have left while writing a Basic program? I believe it would be STKBOT - E_LINE
Code: Select all
PRINT ((PEEK(16410)*256) + PEEK(16411)) - ((PEEK(16404)*256) + PEEK(16405))
but am not sure.
- Posts: 2203
- Joined: Sat Sep 17, 2011 6:48 pm
It should be ERR_SP-STK_END-machine_stack.
Maybe calculate 100 Byte for machine stack to be on the safe site.