hades.models.pic
Interface PicMemory

All Known Implementing Classes:
PicEeprom, PicEprom, PicEpromBreakPoints, PicRegBank, PicRegBankBreakPoints, PicStack, TurboPicCore.PicMemoryEepromAdapter, TurboPicCore.PicMemoryRegbankAdapter, TurboPicCore.PicMemoryStackAdapter

public interface PicMemory

PicEprom, PicRegBank and PicStack are all accessable with PicMemory, this gives advantages in displaying each with the same gui-element. The read- and write-methods override all limitations like write-protection, bit-masking or bank-switching


Method Summary
 int getMemorySize()
          Capacity of the memory in words
 int getWordWidth()
          Witdh of one word in bits
 int readMemory(int address)
          Read a word from the memory
 void writeMemory(int address, int word)
          Write a word into the memory
 

Method Detail

getWordWidth

public int getWordWidth()
Witdh of one word in bits


getMemorySize

public int getMemorySize()
Capacity of the memory in words


readMemory

public int readMemory(int address)
Read a word from the memory


writeMemory

public void writeMemory(int address,
                        int word)
Write a word into the memory