hades.models.pic
Class TurboPicCore.PicMemoryEepromAdapter

java.lang.Object
  extended byhades.models.pic.TurboPicCore.PicMemoryEepromAdapter
All Implemented Interfaces:
PicMemory
Enclosing class:
TurboPicCore

class TurboPicCore.PicMemoryEepromAdapter
extends java.lang.Object
implements PicMemory


Constructor Summary
(package private) TurboPicCore.PicMemoryEepromAdapter()
           
 
Method Summary
 int getMemorySize()
          Capacity of the memory in words
 int getWordWidth()
          Witdh of one word in bits
 int readMemory(int addr)
          Read a word from the memory
 void writeMemory(int addr, int value)
          Write a word into the memory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurboPicCore.PicMemoryEepromAdapter

TurboPicCore.PicMemoryEepromAdapter()
Method Detail

getWordWidth

public int getWordWidth()
Description copied from interface: PicMemory
Witdh of one word in bits

Specified by:
getWordWidth in interface PicMemory

getMemorySize

public int getMemorySize()
Description copied from interface: PicMemory
Capacity of the memory in words

Specified by:
getMemorySize in interface PicMemory

readMemory

public int readMemory(int addr)
Description copied from interface: PicMemory
Read a word from the memory

Specified by:
readMemory in interface PicMemory

writeMemory

public void writeMemory(int addr,
                        int value)
Description copied from interface: PicMemory
Write a word into the memory

Specified by:
writeMemory in interface PicMemory