de.michab.simulator
Interface Addressable

All Known Subinterfaces:
Chip, Memory
All Known Implementing Classes:
DefaultChip, Extension

public interface Addressable

Base interface for addressable components.

Version:
$Revision: 1.7 $
Author:
Michael G. Binz

Method Summary
 byte read(int address)
          Read a byte from the given address.
 void write(int address, byte value)
          Write a byte into the given address.
 

Method Detail

read

public byte read(int address)
Read a byte from the given address.

Parameters:
address - The source address.
Returns:
The byte read.

write

public void write(int address,
                  byte value)
Write a byte into the given address.

Parameters:
address - The target address.
value - The value to be written.