Base memory class to map non continuous rectangle to the memory. (A rectangle that spam across more than one bank but that does not start at $0000 or end at $FFFF).
More...
#include <ARectangleMemory.hpp>
Base memory class to map non continuous rectangle to the memory. (A rectangle that spam across more than one bank but that does not start at $0000 or end at $FFFF).
◆ ~ARectangleMemory()
| ComSquare::Memory::ARectangleMemory::~ARectangleMemory |
( |
| ) |
|
|
overridedefault |
◆ getRelativeAddress()
| uint24_t ComSquare::Memory::ARectangleMemory::getRelativeAddress |
( |
uint24_t |
addr | ) |
const |
|
overridevirtual |
◆ getValueName()
| std::string ComSquare::Memory::ARectangleMemory::getValueName |
( |
uint24_t |
addr | ) |
const |
|
overridevirtual |
◆ hasMemoryAt()
| bool ComSquare::Memory::ARectangleMemory::hasMemoryAt |
( |
uint24_t |
addr | ) |
const |
|
overridevirtual |
Return true if this component has mapped the address.
- Parameters
-
| addr | The address to check. |
- Returns
- True if this address is mapped to the component. False otherwise.
Implements ComSquare::Memory::IMemory.
◆ setMemoryRegion()
| void ComSquare::Memory::ARectangleMemory::setMemoryRegion |
( |
uint8_t |
startBank, |
|
|
uint8_t |
endBank, |
|
|
uint16_t |
startPage, |
|
|
uint16_t |
endPage |
|
) |
| |
Change starting and ending points of this mapped memory.
- Parameters
-
| startBank | The first bank mapped to this component. |
| endBank | The last bank mapped to this component. |
| startPage | The first page mapped to this component (every mapped banks will have this page mapped) |
| endPage | The end page mapped to this component (every mapped banks will have this pages lower than this mapped) |
- Warning
- The start/end address should be a rectangle. To mirror memory, use the MemoryShadow class and not this one.
◆ _endBank
| uint8_t ComSquare::Memory::ARectangleMemory::_endBank = 0 |
|
protected |
◆ _endPage
| uint16_t ComSquare::Memory::ARectangleMemory::_endPage = 0 |
|
protected |
The last address of each bank to map.
◆ _startBank
| uint8_t ComSquare::Memory::ARectangleMemory::_startBank = 0 |
|
protected |
The first bank to map to.
◆ _startPage
| uint16_t ComSquare::Memory::ARectangleMemory::_startPage = 0 |
|
protected |
The first address of each bank to map.
The documentation for this class was generated from the following files: