thunderace7
New Member
Hi. Can someone explain X2 program slots to me, please?
In the X2 product briefing it says that there are up to 4 internal slots, each of which can contain around 1000 program lines.
My 40X2 program has around 1200 lines and reports it's syntax check as 3910 bytes of 4048 used. Presumably this means that is all contained within 1 program slot (slot 0?) and there are 3 more I could use?
The product briefing also states that subroutines cannot be shared across slots. Do i, therefore, have to duplicate subroutines in each of the slots where they are to be used? If so, I need to give them different names?
Is it OK to define variables just the once and use them across slots?
If I run them as one large program, do I just put a run 1 command (or run 2, run 3) at the end of each slot program? When it gets to the end of slot 3 will it restart at slot 0 or do I need a run 0 command at the end?
How do I write the programs? Do I write them as individual slot programs and load them separately into each slot? How does PE6 handle this?
I know I have asked a lot of questions and I apologise for it but I really don't understand how it works and don't want to waste three quarters of my 40X2 memory.
Why have they designed it like this? Is there some advantage that I have not seen? It seems to me to be unnecessary complication and nothing that couldn't be achieved with GOTO commands.
Thanks for your patience. I'm impressed that you stuck with it until the end of the message.
In the X2 product briefing it says that there are up to 4 internal slots, each of which can contain around 1000 program lines.
My 40X2 program has around 1200 lines and reports it's syntax check as 3910 bytes of 4048 used. Presumably this means that is all contained within 1 program slot (slot 0?) and there are 3 more I could use?
The product briefing also states that subroutines cannot be shared across slots. Do i, therefore, have to duplicate subroutines in each of the slots where they are to be used? If so, I need to give them different names?
Is it OK to define variables just the once and use them across slots?
If I run them as one large program, do I just put a run 1 command (or run 2, run 3) at the end of each slot program? When it gets to the end of slot 3 will it restart at slot 0 or do I need a run 0 command at the end?
How do I write the programs? Do I write them as individual slot programs and load them separately into each slot? How does PE6 handle this?
I know I have asked a lot of questions and I apologise for it but I really don't understand how it works and don't want to waste three quarters of my 40X2 memory.
Why have they designed it like this? Is there some advantage that I have not seen? It seems to me to be unnecessary complication and nothing that couldn't be achieved with GOTO commands.
Thanks for your patience. I'm impressed that you stuck with it until the end of the message.