dioscuri.module.cpu32
Class PhysicalAddressSpace.MapWrapper
java.lang.Object
dioscuri.module.cpu32.Memory
dioscuri.module.cpu32.PhysicalAddressSpace.MapWrapper
- All Implemented Interfaces:
- ByteArray
- Enclosing class:
- PhysicalAddressSpace
public static class PhysicalAddressSpace.MapWrapper
- extends Memory
|
Method Summary |
void |
clear()
|
void |
clear(int start,
int length)
|
void |
copyContentsFrom(int offset,
byte[] buffer,
int off,
int len)
|
void |
copyContentsInto(int offset,
byte[] buffer,
int off,
int len)
|
CodeBlock |
decodeCodeBlockAt(Processor cpu,
int offset)
|
int |
execute(Processor cpu,
int offset)
|
byte |
getByte(int offset)
|
int |
getDoubleWord(int offset)
|
long |
getLowerDoubleQuadWord(int offset)
|
long |
getQuadWord(int offset)
|
long |
getSize()
|
long |
getUpperDoubleQuadWord(int offset)
|
short |
getWord(int offset)
|
void |
setByte(int offset,
byte data)
|
void |
setDoubleWord(int offset,
int data)
|
void |
setLowerDoubleQuadWord(int offset,
long data)
|
void |
setQuadWord(int offset,
long data)
|
void |
setUpperDoubleQuadWord(int offset,
long data)
|
void |
setWord(int offset,
short data)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSize
public long getSize()
- Specified by:
getSize in interface ByteArray- Specified by:
getSize in class Memory
- Returns:
- -
clear
public void clear()
- Specified by:
clear in interface ByteArray- Specified by:
clear in class Memory
clear
public void clear(int start,
int length)
- Specified by:
clear in class Memory
- Parameters:
start - length -
copyContentsInto
public void copyContentsInto(int offset,
byte[] buffer,
int off,
int len)
- Specified by:
copyContentsInto in interface ByteArray- Specified by:
copyContentsInto in class Memory
- Parameters:
offset - buffer - off - len -
copyContentsFrom
public void copyContentsFrom(int offset,
byte[] buffer,
int off,
int len)
- Specified by:
copyContentsFrom in class Memory
- Parameters:
offset - buffer - off - len -
getByte
public byte getByte(int offset)
- Specified by:
getByte in interface ByteArray- Specified by:
getByte in class Memory
- Parameters:
offset -
- Returns:
- -
getWord
public short getWord(int offset)
- Specified by:
getWord in class Memory
- Parameters:
offset -
- Returns:
- -
getDoubleWord
public int getDoubleWord(int offset)
- Specified by:
getDoubleWord in class Memory
- Parameters:
offset -
- Returns:
- -
getQuadWord
public long getQuadWord(int offset)
- Specified by:
getQuadWord in class Memory
- Parameters:
offset -
- Returns:
- -
getLowerDoubleQuadWord
public long getLowerDoubleQuadWord(int offset)
- Specified by:
getLowerDoubleQuadWord in class Memory
- Parameters:
offset -
- Returns:
- -
getUpperDoubleQuadWord
public long getUpperDoubleQuadWord(int offset)
- Specified by:
getUpperDoubleQuadWord in class Memory
- Parameters:
offset -
- Returns:
- -
setByte
public void setByte(int offset,
byte data)
- Specified by:
setByte in interface ByteArray- Specified by:
setByte in class Memory
- Parameters:
offset - data -
setWord
public void setWord(int offset,
short data)
- Specified by:
setWord in class Memory
- Parameters:
offset - data -
setDoubleWord
public void setDoubleWord(int offset,
int data)
- Specified by:
setDoubleWord in class Memory
- Parameters:
offset - data -
setQuadWord
public void setQuadWord(int offset,
long data)
- Specified by:
setQuadWord in class Memory
- Parameters:
offset - data -
setLowerDoubleQuadWord
public void setLowerDoubleQuadWord(int offset,
long data)
- Specified by:
setLowerDoubleQuadWord in class Memory
- Parameters:
offset - data -
setUpperDoubleQuadWord
public void setUpperDoubleQuadWord(int offset,
long data)
- Specified by:
setUpperDoubleQuadWord in class Memory
- Parameters:
offset - data -
execute
public int execute(Processor cpu,
int offset)
- Specified by:
execute in class Memory
- Parameters:
cpu - offset -
- Returns:
- -
decodeCodeBlockAt
public CodeBlock decodeCodeBlockAt(Processor cpu,
int offset)
- Specified by:
decodeCodeBlockAt in class Memory
- Parameters:
cpu - offset -
- Returns:
- -