|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.cmp.memory.LittleEndianMemory
com.cmpware.cmp.memory.BigEndianMemory
public class BigEndianMemory
This class implements the Big Endian memory module.
Copyright (c) 2004, 2005 Cmpware, Inc. All Rights Reserved.
| Field Summary |
|---|
| Fields inherited from class com.cmpware.cmp.memory.LittleEndianMemory |
|---|
baseAddr, copyright, DEFAULT_MEMORY_SIZE, maxProfile, memory, profile, PROFILE_GRANULARITY |
| Constructor Summary | |
|---|---|
BigEndianMemory()
Constructor |
|
BigEndianMemory(byte[] b)
Constructor |
|
BigEndianMemory(int size)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
getEndian()
This method returns the endian (byte order) of the memory. |
short |
read16(int addr)
This method returns a 16-bit short from the memory at address 'addr'. |
int |
read24(int addr)
This method returns a 24-bit unsigned integer from the memory at address 'addr'. |
int |
read32(int addr)
This method returns a 32-bit int from the memory at address 'addr'. |
long |
read64(int addr)
This method returns a 64-bit long from the memory at address 'addr'. |
void |
write16(int addr,
short a)
This method writes the 16-bit value 'a' to the requested memory address. |
void |
write24(int addr,
int a)
This method writes a 24-bit value 'a' to the requested memory address. |
void |
write32(int addr,
int a)
This method writes the 32-bit value 'a' to the requested memory address. |
void |
write64(int addr,
long a)
This method writes the 64-bit value 'a' to the requested memory address. |
| Methods inherited from class com.cmpware.cmp.memory.LittleEndianMemory |
|---|
clearProfile, get, getBaseAddress, getMaxProfile, getOffset, getProfile, getProfile, getProfileGranularity, isReadable, isValidAddress, isWriteable, profile, read, resize, setBaseAddress, setEndian, size, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.cmpware.cmp.memory.MemoryInterface |
|---|
clearProfile, get, getBaseAddress, getMaxProfile, getProfile, getProfile, getProfileGranularity, isValidAddress, profile, resize, setBaseAddress, setEndian, size |
| Methods inherited from interface com.cmpware.cmp.memory.ReadWriteInterface |
|---|
isReadable, isWriteable, read, write |
| Constructor Detail |
|---|
public BigEndianMemory()
public BigEndianMemory(int size)
size - The size of the memory in bytespublic BigEndianMemory(byte[] b)
b - The byte array used as the memory store.| Method Detail |
|---|
public boolean getEndian()
MemoryInterface
getEndian in interface MemoryInterfacegetEndian in class LittleEndianMemory
public short read16(int addr)
throws MemoryAccessException
ReadWriteInterface
read16 in interface ReadWriteInterfaceread16 in class LittleEndianMemoryaddr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
public int read24(int addr)
throws MemoryAccessException
ReadWriteInterface
read24 in interface ReadWriteInterfaceread24 in class LittleEndianMemoryaddr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
public int read32(int addr)
throws MemoryAccessException
ReadWriteInterface
read32 in interface ReadWriteInterfaceread32 in class LittleEndianMemoryaddr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
public long read64(int addr)
throws MemoryAccessException
ReadWriteInterface
read64 in interface ReadWriteInterfaceread64 in class LittleEndianMemoryaddr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
public void write16(int addr,
short a)
throws MemoryAccessException
ReadWriteInterface
write16 in interface ReadWriteInterfacewrite16 in class LittleEndianMemoryaddr - The memory address.a - The value to be written.
MemoryAccessException - if an illegal memory address
is encountered.
public void write24(int addr,
int a)
throws MemoryAccessException
ReadWriteInterface
write24 in interface ReadWriteInterfacewrite24 in class LittleEndianMemoryaddr - The memory address.a - The value to be written.
MemoryAccessException - if an illegal memory address
is encountered.
public void write32(int addr,
int a)
throws MemoryAccessException
ReadWriteInterface
write32 in interface ReadWriteInterfacewrite32 in class LittleEndianMemoryaddr - The memory address.a - The value to be written.
MemoryAccessException - if an illegal memory address
is encountered.
public void write64(int addr,
long a)
throws MemoryAccessException
ReadWriteInterface
write64 in interface ReadWriteInterfacewrite64 in class LittleEndianMemoryaddr - The memory address.a - The value to be written.
MemoryAccessException - if an illegal memory address
is encountered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||