minBlockSize method
Returns the minimum block size (number of addresses) needed to cover all registers in this block.
Implementation
int minBlockSize() {
var maxAddr = 0;
for (final reg in registers) {
if (reg.addr > maxAddr) {
maxAddr = reg.addr;
}
}
return maxAddr + 1;
}