Class RAM
Basic RAM component.
Constructors
| Name | Description |
this
(Size)
|
Instantiate a RAM device with a given capacity.
|
Methods
| Name | Description |
getAuthor
()
|
Returns a string with the component author's name.
|
getName
()
|
Returns a string with the component's name.
|
getSize
()
|
Returns the bus component size on the address bus, this cannot be variable at execution time, if the component's size changes, the emulator will present undefined behaviour.
|
read
(Address)
|
Read a byte from this bus component, like in the write method, the address will be translated.
|
write
(Address, Data)
|
Write data to this bus component. The address will be translated from the real address to a zero-indexed address.
|