sigurasg / GhidraTek2465

A Ghidra loader and analyzer for the Tek2465 series oscilloscope firmware.
Apache License 2.0
5 stars 1 forks source link

Cater for "stitch" bank in 160-5370/160-5371 ROMs #4

Closed sigurasg closed 5 months ago

sigurasg commented 5 months ago

It turns out that the PB2 line in PORT1 is actually used. When it's set, the U2250 PAL stitches together the 3 "lost" 8k sections of the two ROMs to create a 5th 24k bank. The loader should be able to cope with this by looking for a pair of 5370/5371s and stitching up another overlay memory block from the right pieces.

sigurasg commented 5 months ago

Looks like backing the memory blocks with FileBytes is the right approach. This allows accessing the full contents of the file after the initial memory blocks are created.

sigurasg commented 5 months ago

This should be covered now.