Go to the documentation of this file.
210 if (addr < start_ || addr >
end_) {
222 unsigned digits = cellSize / 4;
223 if ((cellSize % 4) != 0) {
228 int extendedValue = data;
254 if (addr < start_ || addr >
end_) {
314 if (address <
end_) {
332 if (address <
end_) {
350 address += column * size;
Memory & memory_
Memory to access.
SizeMode sizeMode_
Current size mode of the window (1/2/4... MAUs per cell).
static wxString toWxString(const std::string &source)
void setDataMode(DataMode mode)
virtual void SetValue(int row, int col, const wxString &value)
virtual int GetNumberRows()
virtual ULongWord MAUSize()
wxString memoryContents(ULongWord addr)
virtual int GetNumberCols()
virtual bool IsEmptyCell(int row, int col)
static std::string toString(const T &source)
#define assert(condition)
unsigned numberOfColumns_
Current number of columns in the grid.
static std::string toBinary(unsigned int source, unsigned int stringWidth=0)
Word start_
Start address of the memory range to display.
virtual wxString GetValue(int row, int col)
virtual wxString GetRowLabelValue(int row)
DataMode dataMode_
Current data mode of the window (hex/binary/int...).
void findAddress(Word addr, int &row, int &col)
virtual Memory::MAU read(ULongWord address)=0
virtual wxString GetColLabelValue(int col)
int mauSize_
Size of MAU in bits.
static std::string toHexString(T source, std::size_t digits=0, bool include0x=true)
void writeValue(int row, int column, UIntWord memoryValue)
void setNumberOfColumns(unsigned columns)
virtual void advanceClock()
static const Word MAX_ROWS
Maximum number of rows to display in the window.
virtual void write(ULongWord address, MAU data)=0
void setSizeMode(SizeMode mode)
MemoryGridTable(Memory &memory)
Word end_
End address of the memory range to display.
Word cellAddress(int row, int column) const
unsigned sizeOfCell() const
static const std::string NOT_AVAILABLE
String that is displayed in a cell that is not in the current AS.
virtual ~MemoryGridTable()
virtual ULongWord start()