|
ComSquare
|
#include <IPL.hpp>
Public Member Functions | |
| IPL (Component, std::string iplName) | |
| Create the rom with its value. More... | |
| IPL (const IPL &)=delete | |
| The rom can't be copied. More... | |
| IPL & | operator= (IPL &)=delete |
| The rom can't be assigned. More... | |
| ~IPL () override=default | |
| A default destructor. More... | |
| uint8_t | read (uint24_t addr) override |
| Read data from the component using the same method as the basic IMemory. More... | |
| void | write (uint24_t addr, uint8_t data) override |
| Write data to this component using the same method as the basic IMemory. More... | |
| uint8_t & | operator[] (uint24_t addr) |
| Retrieve the data at the address given. This can be used instead of read or write. More... | |
| const uint8_t & | operator[] (uint24_t addr) const |
| Retrieve the data at the address given. This can be used instead of read or write. More... | |
| uint24_t | getSize () const override |
| Get the size of the data. This size can be lower than the mapped data. More... | |
| std::string | getName () const override |
| Get the name of this accessor (used for debug purpose) More... | |
| Component | getComponent () const override |
| Get the component of this accessor (used for debug purpose) More... | |
| std::string | getValueName (uint24_t addr) const override |
| Get the name of the data at the address. More... | |
Public Member Functions inherited from ComSquare::Memory::AMemory | |
| uint24_t | getRelativeAddress (uint24_t addr) const override |
| Translate an absolute address to a relative address. More... | |
| void | setMemoryRegion (uint24_t start, uint24_t end) |
| Change starting and ending points of this mapped memory. More... | |
| bool | hasMemoryAt (uint24_t addr) const override |
| Return true if this component has mapped the address. More... | |
| ~AMemory () override=default | |
| A default destructor. More... | |
Public Member Functions inherited from ComSquare::Memory::IMemory | |
| virtual | ~IMemory ()=default |
| A virtual default destructor. More... | |
Protected Attributes | |
| std::array< uint8_t, 64 > | _data |
| The Rom. More... | |
| size_t | _size = 64 |
| The size of the IPL rom (in bytes). More... | |
| Component | _iplType |
| An id identifying the type of memory this is (for the debugger) More... | |
| std::string | _iplName |
| The name of this ram. More... | |
Protected Attributes inherited from ComSquare::Memory::AMemory | |
| uint24_t | _start = 0 |
| The starting address mapped to this component. More... | |
| uint24_t | _end = 0 |
| The last continuous address mapped to this components. For shadows, see the MemoryShadow class. More... | |
|
explicit |
Create the rom with its value.
|
delete |
The rom can't be copied.
|
overridedefault |
A default destructor.
|
overridevirtual |
Get the component of this accessor (used for debug purpose)
Implements ComSquare::Memory::IMemory.
|
overridevirtual |
Get the name of this accessor (used for debug purpose)
Implements ComSquare::Memory::IMemory.
|
overridevirtual |
Get the size of the data. This size can be lower than the mapped data.
Implements ComSquare::Memory::IMemory.
|
overridevirtual |
Get the name of the data at the address.
| addr | The address (in local space) |
Implements ComSquare::Memory::IMemory.
| uint8_t & ComSquare::APU::IPL::IPL::operator[] | ( | uint24_t | addr | ) |
Retrieve the data at the address given. This can be used instead of read or write.
| addr | The address of the data to retrieve. |
| const uint8_t & ComSquare::APU::IPL::IPL::operator[] | ( | uint24_t | addr | ) | const |
Retrieve the data at the address given. This can be used instead of read or write.
| addr | The address of the data to retrieve. |
|
overridevirtual |
Read data from the component using the same method as the basic IMemory.
| addr | The global 24 bits address. This method is responsible of mapping to the component's read. |
| InvalidAddress | if the address is not mapped to the component. |
Implements ComSquare::Memory::IMemory.
|
overridevirtual |
Write data to this component using the same method as the basic IMemory.
| addr | The global 24 bits address. This method is responsible of mapping to the component's write. |
| data | The new data to write. |
| InvalidAddress | if the address is not mapped to the component. |
Implements ComSquare::Memory::IMemory.
|
protected |
The Rom.
|
protected |
The name of this ram.
|
protected |
An id identifying the type of memory this is (for the debugger)
|
protected |
The size of the IPL rom (in bytes).
1.8.17