Run make format.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2019-01-31 13:11:53 -08:00
parent a3388e7666
commit 4fd742befd
2 changed files with 14 additions and 11 deletions

View File

@ -10,7 +10,6 @@ FRAME_WORD_COUNT = 101
# What alignment is expect for columns.
FRAME_ALIGNMENT = 0x80
'''
Sample:
bit_0002000f_079_06

View File

@ -37,7 +37,8 @@ class FasmDisassembler(object):
self.segment_map = self.grid.get_segment_map()
self.decode_warnings = set()
def find_features_in_tile(self, tile_name, bits, solved_bitdata, bitdata, verbose=False):
def find_features_in_tile(
self, tile_name, bits, solved_bitdata, bitdata, verbose=False):
gridinfo = self.grid.gridinfo_at_tilename(tile_name)
try:
@ -138,15 +139,18 @@ class FasmDisassembler(object):
bitidx = bit % bitstream.WORD_SIZE_BITS
annotations = []
annotations.append(fasm.Annotation(
'unknown_bit', '{:08x}_{}_{}'.format(
frame, wordidx, bitidx)))
annotations.append(fasm.Annotation(
'unknown_segment', '0x{:08x}'.format(aligned_frame)))
annotations.append(fasm.Annotation(
'unknown_segbit', '{:02d}_{:02d}'.format(
frame_offset, bit
)))
annotations.append(
fasm.Annotation(
'unknown_bit', '{:08x}_{}_{}'.format(
frame, wordidx, bitidx)))
annotations.append(
fasm.Annotation(
'unknown_segment',
'0x{:08x}'.format(aligned_frame)))
annotations.append(
fasm.Annotation(
'unknown_segbit', '{:02d}_{:02d}'.format(
frame_offset, bit)))
yield fasm.FasmLine(
set_feature=None,
annotations=annotations,