Displaying masked data as a different type

0 votes
asked Sep 30, 2016 by twotriads (140 points)

Is there any way to display masked data as anything other than hex? If not, is there any way to pad the displayed data? As an example I have a 32 bit integer with 4 masks:





I'd like to be able to display the results of the 4 masks as padded integers. Is there a script which would cover this?

1 Answer

0 votes
answered Sep 30, 2016 by andreas (1,720 points)
A custom (scripted) data type could help, yes (examples: https://www.synalysis.net/scripts.html ).

Simply to create four masks with each one byte is not an option?
commented Sep 30, 2016 by twotriads (140 points)
edited Sep 30, 2016 by twotriads
It's an image file format, and the data represents SMPTE timecode (HH:MM:SS:FF - 2 nibbles for hour, 2 nibbles for minutes, 2 nibbles for seconds, 2 nibbles for frames). This is related to my previous question on dynamic endianness (obviously a byte in place is a byte!) but I was hoping to be able to pad values under 0x10 to 2 places for each byte result - at the moment adding leading zeros to the mask doesn't seem to carry across.