15 * This class representes the Flash memory in the chip.
17 * It allows read and write operations and decodes
20 class Flash
: public Memory
{
22 Flash(unsigned int size
);
27 * Write \e size bytes of raw data to memory starting at
28 * offset \e offset. The data to be written is passed via
29 * the \e block variable.
31 * \exception RuntimeException { When the write exceeds
32 * amount of memory, this exception is thrown }
34 void write(unsigned int offset
, unsigned char *block
, unsigned int size
= 1);
37 void decode(unsigned int offset
, unsigned int size
);
41 std::vector
<Instruction
*> decodedMem
;
45 #endif /*AVR_FLASH_H*/