what did they smoke when they develop MTX Basic?

About the BASIC system (not including PROGRAMMING)
Martin A
Posts: 328
Joined: 09 Nov 2013 21:03

Re: what did they smoke when they develop MTX Basic?

Post by Martin A » 24 Oct 2018 19:40

By default, simple variables get parked in the shared ram from #C000 up. There's only a 2 byte pointer

I guess they then get moved further up if a basic program needs that space.

Arrays on the other hand have a 3 byte pointer and live in paged ram, with I think a maximum size of 64k per array, as the index limit is 13107 for a single dimensional array.

With enough ram you can write things like :

Code: Select all

DIM A(10000)
DIM B(10000)
Each statement taking up over 50k of space - Great for desting disc I/O performance !

Post Reply