Nested Class Summary
Nested Classes Modifier and Type Interface Description
Memory.MemoryListenerThe listener interface for receiving memory related events.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getProgramLocation()Gets program's start address.
getSize()Gets size of memory.
setProgramLocation(int location)Sets program start address.
void setProgramLocation(int location)Sets program start address.
This method is called by main module when compiler finishes compilation process and return known start address of compiled program. This start address is then used by CPU, in reset operation - PC (program counter, or something similar) should be set to this address, accessible via
location- starting memory position (address) of a program
int getSize()Gets size of memory.
If memory uses some techniques as banking, real size of the memory is not computed. It is only returned a value set in architecture configuration.
- basic size of the memory
int getProgramLocation()Gets program's start address.
The start address is set invoking memory's method
Memory.setProgramStart()by main module when compiler finishes compilation process of a program and if the compiler know the starting address. This address is used by main module for CPU reset process.
- program's start address in memory