dioscuri.module.cpu32
Class Segment

java.lang.Object
  extended by dioscuri.module.cpu32.Segment
All Implemented Interfaces:
Hibernatable
Direct Known Subclasses:
SegmentFactory.AbstractTSS, SegmentFactory.GateSegment

public abstract class Segment
extends java.lang.Object
implements Hibernatable

Author:
Bram Lohman, Bart Kiers

Constructor Summary
Segment()
           
 
Method Summary
abstract  void checkAddress(int offset)
           
abstract  int dumpState(java.io.DataOutput output)
           
abstract  int getBase()
           
abstract  byte getByte(int offset)
           
abstract  boolean getDefaultSizeFlag()
           
abstract  int getDoubleWord(int offset)
           
abstract  int getDPL()
           
abstract  int getLimit()
           
abstract  long getQuadWord(int offset)
           
abstract  int getRPL()
           
abstract  int getSelector()
           
abstract  int getType()
           
abstract  short getWord(int offset)
           
abstract  boolean isPresent()
           
abstract  void setAddressSpace(AddressSpace memory)
           
abstract  void setByte(int offset, byte data)
           
abstract  void setDoubleWord(int offset, int data)
           
abstract  void setQuadWord(int offset, long data)
           
abstract  void setRPL(int cpl)
           
abstract  boolean setSelector(int selector)
           
abstract  void setWord(int offset, short data)
           
abstract  int translateAddressRead(int offset)
           
abstract  int translateAddressWrite(int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Segment

public Segment()
Method Detail

isPresent

public abstract boolean isPresent()
Returns:
-

setAddressSpace

public abstract void setAddressSpace(AddressSpace memory)
Parameters:
memory -

getType

public abstract int getType()
Returns:
-

getSelector

public abstract int getSelector()
Returns:
-

getLimit

public abstract int getLimit()
Returns:
-

getBase

public abstract int getBase()
Returns:
-

getDefaultSizeFlag

public abstract boolean getDefaultSizeFlag()
Returns:
-

getRPL

public abstract int getRPL()
Returns:
-

setRPL

public abstract void setRPL(int cpl)
Parameters:
cpl -

getDPL

public abstract int getDPL()
Returns:
-

setSelector

public abstract boolean setSelector(int selector)
Parameters:
selector -
Returns:
-

checkAddress

public abstract void checkAddress(int offset)
                           throws ProcessorException
Parameters:
offset -
Throws:
ProcessorException

translateAddressRead

public abstract int translateAddressRead(int offset)
Parameters:
offset -
Returns:
-

translateAddressWrite

public abstract int translateAddressWrite(int offset)
Parameters:
offset -
Returns:
-

getByte

public abstract byte getByte(int offset)
Parameters:
offset -
Returns:
-

getWord

public abstract short getWord(int offset)
Parameters:
offset -
Returns:
-

getDoubleWord

public abstract int getDoubleWord(int offset)
Parameters:
offset -
Returns:
-

getQuadWord

public abstract long getQuadWord(int offset)
Parameters:
offset -
Returns:
-

setByte

public abstract void setByte(int offset,
                             byte data)
Parameters:
offset -
data -

setWord

public abstract void setWord(int offset,
                             short data)
Parameters:
offset -
data -

setDoubleWord

public abstract void setDoubleWord(int offset,
                                   int data)
Parameters:
offset -
data -

setQuadWord

public abstract void setQuadWord(int offset,
                                 long data)
Parameters:
offset -
data -

dumpState

public abstract int dumpState(java.io.DataOutput output)
                       throws java.io.IOException
Parameters:
output -
Returns:
-
Throws:
java.io.IOException