(PagedMemory source)
| 129 | } |
| 130 | |
| 131 | public void fillBanks(PagedMemory source) { |
| 132 | byte[][] sourceMemory = source.getMemory(); |
| 133 | int sourceBase = source.type.getBaseAddress() >> 8; |
| 134 | int thisBase = type.getBaseAddress() >> 8; |
| 135 | int start = Math.max(sourceBase, thisBase); |
| 136 | int sourceEnd = sourceBase + source.getMemory().length; |
| 137 | int thisEnd = thisBase + getMemory().length; |
| 138 | int end = Math.min(sourceEnd, thisEnd); |
| 139 | for (int i = start; i < end; i++) { |
| 140 | set(i - thisBase, sourceMemory[i - sourceBase]); |
| 141 | } |
| 142 | } |
| 143 | } |
no test coverage detected