by siggi on Sun Dec 13, 2009 10:23 am
The D-File can be above 32K, if you don't have a /M1-circuit (to execute m/c above 32K) installed or have it disabled.
But it cannot go above 48K, because the memory logic would (during display and /M1 active) redirect access from the D-File to the 16K range and then the Zeddy would crash, because there are BASIC-lines, which then are executed as m/c.
So you could use 32K for a BASIC program + 16 K for variables (behind the D-file below 48K up to 64K).
But if you use MCODER to compile a BASIC program, it will insert the generated m/c at 16K (line 1). Due to the disabled /M1 circuit (to have the D-File above 32K) the compiled code still must be below 32K!
If you use a C-compiler (like z88dk), you can have a small (dummy-) BASIC-program with D-File below 32K and run the compiled C-program above 32K (but below 48K) and have data structures/heap/stack of the C-program (but no code) located above 48K (/M1 circuit activated).
HTH Siggi
Last edited by
siggi on Mon Jan 18, 2010 3:36 pm, edited 1 time in total.
There are 10 types of people in this world: those who understand binary and those who don't.