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