MDFS::Software.BBCBasic.Z88 Search 

BBC BASIC (Z80) for the Sinclair Z88

Technical Information

In its Z88 incarnation, BASIC occupies a memory map in the following form:
$C000 - $FFFF           BBC BASIC interpreter$4000 - $BFFF           (additional 32K of program/workspace, expanded Z88)$2000 - $3FFF           BASIC program/workspace$0000 - $1FFF           Operating system use (and occasional application stack)
Memory is fixed at the bottom and variable at the top. BASIC workspaceoccupies &2000 to &22FF. PAGE starts at &2300.

BASIC's program/workspace is arranged in the following manner:
 

            +-------------------+   $FFFF            | BASIC interpreter |            .                   .            .                   .HIMEM       +-------------------+   $BFFF or $3FFF            | Stack             |            +-------------------+   Current limit of the stack            .                   .   (Stack expands downwards)            . Unused memory     .            .                   .            +-------------------+   Current limit of the heap            | Heap              |   (Heap expands upwards)LOMEM       +-------------------+            .                   .            .                   .TOP         +-------------------+            | Program           |PAGE        +-------------------+   $2300            | Workspace for     |            | interpreter       |            +-------------------+   $2000            | Operating system  |            | system usage      |            +-------------------+   $0000
When BASIC is swapped out, then unused memory above the end of the heap andbelow the stack is used by other applications. When BASIC is returned toits contents may have changed.

HOME  DOCUMENTS  LINKS  RECENT CHANGES
Hosted by Force9 Internet- Authored by J.G.Harston- Last update: 20-Aug-2003