New AtdfService - provides conversion of Microchip ATDF files to Bloom's new TDF format

This commit is contained in:
Nav
2024-02-22 20:54:48 +00:00
parent ccf631fcc7
commit 35873cf031
4 changed files with 1015 additions and 0 deletions

View File

@@ -50,6 +50,17 @@ class MemorySegment
return null;
}
public function getInnermostSectionContainingAddressRange(int $startAddress, int $endAddress)
: ?MemorySegmentSection {
foreach ($this->sections as $section) {
if ($section->containsAddressRange($startAddress, $endAddress)) {
return $section->getInnermostSubSectionContainingAddressRange($startAddress, $endAddress);
}
}
return null;
}
public function contains(MemorySegment $other): bool
{
$endAddress = !is_null($this->startAddress) && !is_null($this->size)