This PR adds a hex viewer (https://github.com/GideonZ/1541ultimate/issues/320) for supported files (currently any file not larger than 26KiB). Each line is rendered in the format popularized by many C64 monitors, including SMON: 4 byte offset, 8 bytes data (first in hex, then using the Ultimate's UI character set, with dots for bytes that can't be rendered).
The decision about which view to use for opening a file was deliberately left to the user. There may be legit use cases to open a text file in hex view, and vice versa.
The firmware resulting from this PR was successfully flashed to a 64 Ultimate Elite, revision 1.4. All testing was done on this machine.
New "Hex View" entry in context-sensitive menu:
New "Hex View":
Same file opened via existing "View" which was left unchanged. In this example, byte 0x00 at offset 0x3b terminates the string rendering:
New "Hex View" using sample file containg contiguous sequence of numbers from 1 through 255:
Known limitations:
Hard file size limit to ensure we don't exhaust the U64's RAM.
This PR adds a hex viewer (https://github.com/GideonZ/1541ultimate/issues/320) for supported files (currently any file not larger than 26KiB). Each line is rendered in the format popularized by many C64 monitors, including SMON: 4 byte offset, 8 bytes data (first in hex, then using the Ultimate's UI character set, with dots for bytes that can't be rendered).
New "Hex View" entry in context-sensitive menu:
New "Hex View":
Same file opened via existing "View" which was left unchanged. In this example, byte 0x00 at offset 0x3b terminates the string rendering:
New "Hex View" using sample file containg contiguous sequence of numbers from 1 through 255:
Known limitations: