26 #ifndef FLASH_H_INCLUDED 27 #define FLASH_H_INCLUDED 60 void Decode(
unsigned int addr);
65 void Decode(
unsigned int addr,
int secSize);
70 void WriteMem(
const unsigned char* src,
unsigned int addr,
unsigned int secSize);
73 void WriteMemByte(
unsigned char val,
unsigned int address);
79 bool IsRWWLock(
unsigned int addr) {
return (addr < rww_lock);}
92 unsigned char ReadMem(
unsigned int addr);
Basic AVR device, contains the core functionality.
unsigned int ReadMemWord(unsigned int addr)
void WriteMem(const unsigned char *src, unsigned int addr, unsigned int secSize)
Holds AVR flash content and symbol informations.
int operator()()
Performs instruction.
AvrFlash(AvrDevice *c, int size)
void WriteMemByte(unsigned char val, unsigned int address)
int operator()()
Performs instruction.
unsigned char ReadMemRaw(unsigned int addr)
unsigned int ReadMemRawWord(unsigned int addr)
std::vector< DecodedInstruction * > DecodedMem
bool flashLoaded
Flag, true if there was a write to Flash after constructor call (program load)
DecodedInstruction * GetInstruction(unsigned int pc)
void SetRWWLock(unsigned int addr)
unsigned int rww_lock
When Flash write is in progress then addresses below this are inaccesible, otherwise 0...
bool IsRWWLock(unsigned int addr)
int operator()()
Performs instruction.
int operator()()
Performs instruction.
Base class of core instruction.
bool LooksLikeContextSwitch(unsigned int addr) const
unsigned char ReadMem(unsigned int addr)
Hold a memory block and symbol informations.
bool IsProgramLoaded(void)
int operator()()
Performs instruction.