The max. capacity of this instance of the RAM class.
A public accessable getter for the memory cells. This method will be used by the GUI in order to display the contents of the main memory.
The current content of this RAM instance.
This method clears all bits at the specified location and removes the entry with the given physical memory address from the cells map. Both is done only if there is an entry in cells map.
A binary value representing a physical memory address to write the data to.
This method tries to read a byte from the specified memory address. Returns a binary zero for address not conatined in the map in order to simulate a full size memory.
A binary value representing a physical memory address to write the data to.
The byte-sized data found at the specified address.
This method reads doubleword sized data from the main memory starting at the specified physical memory address.
A binary physical memory address to read the doubleword-sized data from.
Doubleword-sized binary data.
This method writes a specified byte of data to the specified address in in the main memory. Throws an error, if the data exeeds a byte.
A binary value representing a physical memory address to write the data to.
Byte-sized data to write to the specified pyhsical memory address.
This methods writes a doubleword (32-bit- or 4-byte-) value to memory to the specified memory address.
A physical memory address to write the doubleword-sized data to.
Doubleword-sized data to write.
This method constructs an instance of the RAM class.