diff --git a/src/Targets/TargetMemory.hpp b/src/Targets/TargetMemory.hpp index 7d6b01fa..64a1c3fd 100644 --- a/src/Targets/TargetMemory.hpp +++ b/src/Targets/TargetMemory.hpp @@ -36,6 +36,10 @@ namespace Bloom::Targets || (other.endAddress >= this->endAddress && other.startAddress <= this->endAddress) ; } + + [[nodiscard]] bool contains(std::uint32_t address) const { + return address >= this->startAddress && address < this->endAddress; + } }; struct TargetMemoryDescriptor