GideonZ / 1541ultimate

Official GIT archive of 1541 ultimate II sources
GNU General Public License v3.0
178 stars 45 forks source link

Added hex viewer #354

Closed chrisgleissner closed 1 year ago

chrisgleissner commented 1 year ago

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:

image

New "Hex View":

image

Same file opened via existing "View" which was left unchanged. In this example, byte 0x00 at offset 0x3b terminates the string rendering:

image

New "Hex View" using sample file containg contiguous sequence of numbers from 1 through 255:

image

Known limitations: