public void SetCellByAddress(string address, IMemoryCell cellContent) { // Nonsignificant zeroes deleting address = Convert.ToInt32(address).ToString(); TestForAddressCorrectness(address); mMemoryCellList[address] = cellContent; }
public void AssertMemoryCellProperties() { _memoryCell = new MemoryCell(0x0012, 0xF5); Assert.Equal(0x012, _memoryCell.Address); Assert.Equal(0xF5, _memoryCell.Value); Assert.Equal("0xF5", _memoryCell.HexValue); Assert.Equal("0x0012", _memoryCell.HexAddress); }
public IMemoryCell[] GetMemoryCells(int startIndex, int endIndex) { var cells = new IMemoryCell[endIndex - startIndex + 1]; for (int i = startIndex; i <= endIndex; i++) { cells[i - startIndex] = new MemoryCell(i, Memory.ReadByte((ushort)i)); } return(cells); }
public void SetCellByAddress(string address, IMemoryCell cell) { mLM2Memory.SetCellByAddress(address, cell); }
public void SetCellByAddress(string address, IMemoryCell cell) { throw new NotImplementedException(); }