• Bernhard Nortmann's avatar
    fexc: Fix thinko in script decompiler · 6271d370
    Bernhard Nortmann authored
    
    
    Both the error output in function decompile_section() and the
    definition of GPIO_BANK_MAX in script.h suffered from an "off
    by one" logic. The bank numbering in the .bin is based on 1,
    so it should be added to ('A' - 1) for human-readable output,
    and the maximum number corresponding to 'N' is 14.
    
    This became apparent when trying to translate a fex2bin-compiled
    a80_optimus_board.bin back to its original .fex equivalent.
    Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
    6271d370
script_bin.c 9.41 KB