|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tapina.robe.runtime.BinaryDataSource
com.tapina.robe.runtime.MemoryMap
This class represents the memory map of a running application. Some of the memory map is shared between applications and is therefore represented as static fields.
Constructor Summary | |
MemoryMap(int loadAddress,
byte[] image)
|
Method Summary | |
CodeBlock |
addEntryPoint(CodeBlock codeBlock)
|
CodeBlock |
addEntryPoint(int address)
|
DataBlock |
claimRmaBlock(int length)
|
RawDataBlock |
createDataBlock(int address,
int length)
|
DynamicArea |
createDynamicArea(int initialSize,
int maximumSize,
int handlerRoutine,
int handlerWorkspace,
java.lang.String name,
int privileges,
int flags)
Create a new dynamic area. |
RawDataBlock |
createErrorBlock(int size)
|
RawDataBlock |
createSystemDataBlock(int length)
|
RawDataBlock |
createSystemDataBlock(java.lang.String str)
Create a system data block large enough to hold a null-terminated string and fill it with the string. |
Instruction |
fetchAndDecode(int address)
|
DynamicArea |
findDynamicArea(int areaNumber)
Find a previously-created dyanmic area, given its number. |
long |
get5ByteValue(int address)
|
byte |
getByte(int address)
|
ByteArray |
getByteArray(int address,
int count,
boolean create)
Get an object which allows direct access to the underlying data block for the specified byte range. |
byte[] |
getBytes(int address,
int count)
Take a copy of a set of bytes from the memory map. |
DataBlock |
getDataBlock(int address)
|
int |
getImageSize()
|
int |
getLoadAddress()
|
java.awt.Point |
getPoint(int address)
|
java.awt.Rectangle |
getRectangle(int address)
|
int |
getWord(int address)
|
int[] |
getWords(int address,
int count)
|
void |
releaseRmaBlock(int address)
|
void |
removeSystemDataBlock(DataBlock block)
|
void |
replaceDataBlock(DataBlock oldDataBlock,
DataBlock newDataBlock)
|
void |
resizeSystemDataBlock(DataBlock oldBlock,
int newSize)
|
void |
setImageSize(int size)
|
void |
store5ByteValue(int address,
long value)
|
void |
storeByte(int address,
byte aByte)
|
void |
storeBytes(int address,
byte[] bytes,
int offset,
int length)
|
void |
storePoint(int address,
java.awt.Point p)
|
void |
storeRectangle(int address,
java.awt.Rectangle r)
|
void |
storeString0(int address,
java.lang.String s)
|
void |
storeStringCR(int address,
java.lang.String s)
|
void |
storeWord(int address,
int word)
|
void |
storeWords(int address,
int[] words)
|
Methods inherited from class com.tapina.robe.runtime.BinaryDataSource |
getString0_10_13, getString0, getStringControlTerminated, getStringControlTerminated, getStringN |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemoryMap(int loadAddress, byte[] image)
Method Detail |
public final int getImageSize()
public final void setImageSize(int size)
public final int getLoadAddress()
public final CodeBlock addEntryPoint(int address)
public final CodeBlock addEntryPoint(CodeBlock codeBlock)
public final Instruction fetchAndDecode(int address) throws DecoderException
DecoderException
public final DataBlock getDataBlock(int address)
public final RawDataBlock createDataBlock(int address, int length)
public final RawDataBlock createSystemDataBlock(java.lang.String str)
str
- string to populate block with
public final RawDataBlock createSystemDataBlock(int length)
public void resizeSystemDataBlock(DataBlock oldBlock, int newSize)
public final DataBlock claimRmaBlock(int length)
public final void releaseRmaBlock(int address)
public final DynamicArea createDynamicArea(int initialSize, int maximumSize, int handlerRoutine, int handlerWorkspace, java.lang.String name, int privileges, int flags)
initialSize
- initial size of area in bytesmaximumSize
- maximum size of area in bytes (-1 for unlimited [deprecated])handlerRoutine
- address of handler routinehandlerWorkspace
- pointer to workspace for handler (-1 for base of area)name
- name of areaprivileges
- access privileges to be given to areaflags
- settings for area
public DynamicArea findDynamicArea(int areaNumber)
areaNumber
- dynamic area unique number
public final void removeSystemDataBlock(DataBlock block)
public final void replaceDataBlock(DataBlock oldDataBlock, DataBlock newDataBlock)
public final byte getByte(int address)
public final ByteArray getByteArray(int address, int count, boolean create)
BinaryDataSource
getByteArray
in class BinaryDataSource
address
- address for which to find bytescount
- size of byte block to allow access tocreate
-
public final byte[] getBytes(int address, int count)
BinaryDataSource
BinaryDataSource.getByteArray(int,int,boolean)
instead for efficiency.
getBytes
in class BinaryDataSource
address
- address at which to load bytescount
- number of bytes to load
public final int getWord(int address)
public final long get5ByteValue(int address)
get5ByteValue
in class BinaryDataSource
public final int[] getWords(int address, int count)
getWords
in class BinaryDataSource
public final void storeByte(int address, byte aByte)
public final void storeBytes(int address, byte[] bytes, int offset, int length)
public final void storeWord(int address, int word)
public final void store5ByteValue(int address, long value)
public final void storeWords(int address, int[] words)
public final RawDataBlock createErrorBlock(int size)
public final void storeString0(int address, java.lang.String s)
public final void storeStringCR(int address, java.lang.String s)
public java.awt.Rectangle getRectangle(int address)
public java.awt.Point getPoint(int address)
public void storePoint(int address, java.awt.Point p)
public void storeRectangle(int address, java.awt.Rectangle r)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |