Interface Segment.ErrorReporter

All Known Implementing Classes:
Enclosing interface:

public static interface Segment.ErrorReporter

The ErrorReporter class is used to intercept errors caused by trying to either read or write outside the bounds of this segment. Since this could be done by the program being simulated, the interpreter would like the ability to detect this case and continue simulation rather than an exception being thrown. In other situations, it might be better to throw an exception. Therefore, this object allows the policy to be set separately by an outside object.

Method Summary
 byte readError(int address)
 void writeError(int address, byte value)

Method Detail


public byte readError(int address)


public void writeError(int address,
                       byte value)