dioscuri.module.cpu32
Class Segment
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Segment
public Segment()
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