Package be.lmenten.avr.core.data
Class CoreData
java.lang.Object
be.lmenten.avr.core.CoreMemoryCell
be.lmenten.avr.core.data.CoreData
- Direct Known Subclasses:
CoreRegister
- Since:
- 1.0
- Author:
- Laurent Menten
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
bits(byte mask)
several locations in the opcode, the value is packed and can be directly used.int
Get the size in bits of this memory cell.byte
mask(byte mask)
Return the value of this data cell ANDed with the given mask.void
reset()
Reset this data cell to its default value.void
toParsedLine(Core core, ParsedAssemblerLine parsedLine)
toString()
Methods inherited from class be.lmenten.avr.core.CoreMemoryCell
addAccessListener, bit, bit, bit0, bit0, bit1, bit1, bit2, bit2, bit3, bit3, bit4, bit4, bit5, bit5, bit6, bit6, bit7, bit7, fireAccessEvent, fireExecuteAccessEvent, fireReadAccessEvent, fireWriteAccessEvent, getAccessesCount, getAccessesIterator, getCellAddress, getData, getDataMask, getInitialData, hasCellAddress, hasData, hasInitialData, isDirty, isExecuteAccessRecordingEnabled, isReadAccessRecordingEnabled, isWriteAccessRecordingEnabled, rawGetData, rawSetData, recordExecuteAccess, recordReadAccess, recordWriteAccess, removeAccessListener, setCellAddress, setData, setData, setDirty, setExecuteAccessRecordingEnabled, setReadAccessRecordingEnabled, setWriteAccessRecordingEnabled, silentGetData, silentSetData, toParsedLine, wasAccessed
-
Constructor Details
-
CoreData
public CoreData(int address) -
CoreData
public CoreData(int address, byte value) -
CoreData
public CoreData(int address, byte value, byte defaultValue)
-
-
Method Details
-
getDataWidth
public int getDataWidth()Description copied from class:CoreMemoryCell
Get the size in bits of this memory cell.- 8 for data
- 16 for code
- Specified by:
getDataWidth
in classCoreMemoryCell
- Returns:
-
reset
public void reset()Reset this data cell to its default value.- Overrides:
reset
in classCoreMemoryCell
-
mask
public byte mask(byte mask)Return the value of this data cell ANDed with the given mask.
!!! Does not trigger event or record accesses.
- Parameters:
mask
-- Returns:
-
bits
public byte bits(byte mask)several locations in the opcode, the value is packed and can be directly used.- Parameters:
mask
-- Returns:
-
toParsedLine
- Specified by:
toParsedLine
in classCoreMemoryCell
- Parameters:
core
-parsedLine
-
-
toString
- Overrides:
toString
in classCoreMemoryCell
-