|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReadWriteInterface
This implements the basic memory read / write interface.
Copyright (c) 2004, 2005 Cmpware, Inc. All Rights Reserved.
| Method Summary | |
|---|---|
boolean |
isReadable(int addr)
This method returns true if the current address is readable and false otherwise. |
boolean |
isWriteable(int addr)
This method returns true if the current address is writeable and false otherwise. |
byte |
read(int addr)
This method returns a byte from the memory at address 'addr'. |
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 |
write(int addr,
byte a)
This method copies a byte from 'a' into 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. |
| Method Detail |
|---|
boolean isReadable(int addr)
addr - the address
boolean isWriteable(int addr)
addr - the address
byte read(int addr)
throws MemoryAccessException
addr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
short read16(int addr)
throws MemoryAccessException
addr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
int read24(int addr)
throws MemoryAccessException
addr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
int read32(int addr)
throws MemoryAccessException
addr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
long read64(int addr)
throws MemoryAccessException
addr - The memory address.
MemoryAccessException - if an illegal memory address
is encountered.
void write(int addr,
byte a)
throws MemoryAccessException
addr - The memory address.a - The data to be written to the memory.
MemoryAccessException - if an illegal memory address
is encountered.
void write16(int addr,
short a)
throws MemoryAccessException
addr - The memory address.a - The value to be written.
MemoryAccessException - if an illegal memory address
is encountered.
void write24(int addr,
int a)
throws MemoryAccessException
addr - The memory address.a - The value to be written.
MemoryAccessException - if an illegal memory address
is encountered.
void write32(int addr,
int a)
throws MemoryAccessException
addr - The memory address.a - The value to be written.
MemoryAccessException - if an illegal memory address
is encountered.
void write64(int addr,
long a)
throws MemoryAccessException
addr - 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 | |||||||||