hades.models.pic
Class TurboPicCore.PicMemoryEpromAdapter

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

class TurboPicCore.PicMemoryEpromAdapter
extends PicEprom


Field Summary
 
Fields inherited from class hades.models.pic.PicEprom
bits, bytes, eprom, filename, labels, maxWord, mlTable
 
Constructor Summary
(package private) TurboPicCore.PicMemoryEpromAdapter()
           
 
Method Summary
 java.lang.String getLabel(int addr)
          return the label corresponding to this ROM address - or null if none set.
 int getMemorySize()
          getMemorySize reports the size of the eprom in words
 int getWordWidth()
          getWordWidth reports the width of one word in bits
 int readMemory(int addr)
          Read a word, from interface PicMemory
 void writeMemory(int addr, int value)
          Write a word, from interface PicMemory
 
Methods inherited from class hades.models.pic.PicEprom
addLabel, addMemoryListener, canChangeSize, clearLabels, getBitsPerWord, getDataArray, getDataAt, getFilename, getResourcename, getSize, hasLabel, load, load, load, loadHEX, loadLBL, loadROM, merge, parse, parseLabelLine, por, removeMemoryListener, reset, resize, save, save, setBitsPerWord, setDataArray, setDataAt, setFilename, setFilename, setResourcename, setSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurboPicCore.PicMemoryEpromAdapter

TurboPicCore.PicMemoryEpromAdapter()
Method Detail

getWordWidth

public int getWordWidth()
Description copied from class: PicEprom
getWordWidth reports the width of one word in bits

Specified by:
getWordWidth in interface PicMemory
Overrides:
getWordWidth in class PicEprom

getMemorySize

public int getMemorySize()
Description copied from class: PicEprom
getMemorySize reports the size of the eprom in words

Specified by:
getMemorySize in interface PicMemory
Overrides:
getMemorySize in class PicEprom

readMemory

public int readMemory(int addr)
Description copied from class: PicEprom
Read a word, from interface PicMemory

Specified by:
readMemory in interface PicMemory
Overrides:
readMemory in class PicEprom

writeMemory

public void writeMemory(int addr,
                        int value)
Description copied from class: PicEprom
Write a word, from interface PicMemory

Specified by:
writeMemory in interface PicMemory
Overrides:
writeMemory in class PicEprom

getLabel

public java.lang.String getLabel(int addr)
Description copied from class: PicEprom
return the label corresponding to this ROM address - or null if none set. This method does not check the address range.

Overrides:
getLabel in class PicEprom