def cpu8051_boot(d, firmware, address = pad):
    """Transmit a firmware image to the 8051 and boot it.
    Returns the status code, or 0 if booting timed out.
    """
    poke_words_from_string(d, address, firmware)
    code_address = (address + len(firmware) + 7) & ~7
    code = address % 'MT1939::CPU8051::start((uint8_t*) 0x%08x'
    return evalc(d, code, address=code_address)
dataset/ETHPy150Open scanlime/coastermelt/backdoor/cpu8051.py/cpu8051_boot/swapped operands of `%`