fi.hu.cs.ttk91
Interface TTK91Memory

All Known Implementing Classes:
RandomAccessMemory

public interface TTK91Memory


Method Summary
 int[] getCodeArea()
           
 int[] getDataArea()
           
 int[] getMemory()
           
 int getSize()
           
 java.util.HashMap getSymbolTable()
           
 int getValue(int memoryslot)
          First usable index is 0, last is getSize()-1
 

Method Detail

getSize

public int getSize()

getValue

public int getValue(int memoryslot)
First usable index is 0, last is getSize()-1

Parameters:
memoryslot - memory address where required data is
Returns:
data from requested address

getSymbolTable

public java.util.HashMap getSymbolTable()
Returns:
HashMap with symbol name as a key, and Integer as value. Integer describes the memory slot where the value is stored.

getMemory

public int[] getMemory()

getCodeArea

public int[] getCodeArea()

getDataArea

public int[] getDataArea()