de.michab.simulator
Interface Memory

All Superinterfaces:
Addressable

public interface Memory
extends Addressable

Base interface for addressable components.

Version:
$Revision: 1.7 $
Author:
Michael Binz

Method Summary
 byte[] getRawMemory()
          Get a reference on a raw version of the current memory configuration.
 int getVectorAt(int adr)
          Returns a 16 bit address from the given memory address.
 void set(Forwarder f, int where)
          Add a forwarder to the passed memory position.
 
Methods inherited from interface de.michab.simulator.Addressable
read, write
 

Method Detail

set

public void set(Forwarder f,
                int where)
Add a forwarder to the passed memory position.

Parameters:
f - The Forwarder to add.
where - The memory address where the Forwarder is to be placed.

getRawMemory

public byte[] getRawMemory()
Get a reference on a raw version of the current memory configuration. It may not always possible to use that to get something meaningful -- e.g. in case of paged memory, but if something useful is returned access speed will be hilarious.

Returns:
The raw memory bytes in an array.

getVectorAt

public int getVectorAt(int adr)
Returns a 16 bit address from the given memory address. Respects byte order.

Parameters:
adr - The address to read.
Returns:
The 16 bit address located at the passed memory position.