com.github.croesch.micro_debug.mic1.api
Interface IReadableMemory

All Known Implementing Classes:
Memory

public interface IReadableMemory

Represents the memory that exports only read access.

Since:
Date: Feb 3, 2012
Author:
croesch

Method Summary
 int getByte(int addr)
          Returns a single byte, unsigned, read from the address in the memory.
 int getSize()
          Returns the size of the memory.
 int getWord(int addr)
          Returns the word value at the given address.
 

Method Detail

getWord

int getWord(int addr)
Returns the word value at the given address.

Parameters:
addr - the address, from where to fetch the word
Returns:
the word value read from the memory
Since:
Date: Jan 21, 2012

getByte

int getByte(int addr)
Returns a single byte, unsigned, read from the address in the memory.

Parameters:
addr - the byte address of the byte to read from the memory
Returns:
the byte from the memory at the given address.
Since:
Date: Jan 22, 2012

getSize

int getSize()
Returns the size of the memory.

Returns:
the size of the memory in words
Since:
Date: Feb 9, 2012


Copyright © 2012. All Rights Reserved.