dioscuri.module.cpu32
Class SegmentFactory
java.lang.Object
dioscuri.module.cpu32.SegmentFactory
public class SegmentFactory
- extends java.lang.Object
- Author:
- Bram Lohman, Bart Kiers
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_SEGMENT
public static final Segment NULL_SEGMENT
DESCRIPTOR_TYPE_CODE_DATA
public static final int DESCRIPTOR_TYPE_CODE_DATA
- See Also:
- Constant Field Values
TYPE_ACCESSED
public static final int TYPE_ACCESSED
- See Also:
- Constant Field Values
TYPE_CODE
public static final int TYPE_CODE
- See Also:
- Constant Field Values
TYPE_DATA_WRITABLE
public static final int TYPE_DATA_WRITABLE
- See Also:
- Constant Field Values
TYPE_DATA_EXPAND_DOWN
public static final int TYPE_DATA_EXPAND_DOWN
- See Also:
- Constant Field Values
TYPE_CODE_READABLE
public static final int TYPE_CODE_READABLE
- See Also:
- Constant Field Values
TYPE_CODE_CONFORMING
public static final int TYPE_CODE_CONFORMING
- See Also:
- Constant Field Values
SegmentFactory
public SegmentFactory()
createRealModeSegment
public static Segment createRealModeSegment(Memory memory,
int selector)
- Parameters:
memory
- selector
-
- Returns:
- -
createDescriptorTableSegment
public static Segment createDescriptorTableSegment(Memory memory,
int base,
int limit)
- Parameters:
memory
- base
- limit
-
- Returns:
- -
createProtectedModeSegment
public static Segment createProtectedModeSegment(Memory memory,
int selector,
long descriptor)
- Parameters:
memory
- selector
- descriptor
-
- Returns:
- -