Memory module¶
- class Memory.Memory(pages: int = 1)[source]¶
Bases:
objectClass emulating paginated memory bank.
- peek()¶
Retrieve the content of a memory address.
- poke()¶
Write a value to a memory address.
- __str__() str[source]¶
Overload of the str() function.
- Returns:
A string with the memory pages and offsets.
- Return type:
str
- get_num_memory_pages() int[source]¶
Get the number of memory pages.
- Returns:
Number of memory pages.
- Return type:
int
- get_num_memory_offsets() int[source]¶
Get the memory offsets.
- Returns:
Memory offsets.
- Return type:
int
- peek¶
Dispatch methods based on type signature
See also
Dispatcher
- poke¶
Dispatch methods based on type signature
See also
Dispatcher