def exec_print(cpu, step):
    """Print contents of registers."""
    print('RAM access count:', cpu.ram.access_count)
    print('Registers state:')
    registers = sorted(list(cpu.registers.keys()))
    for reg in registers:
        size = cpu.registers.register_sizes[reg]
        data = '0x' + hex(cpu.registers[reg])[2:].rjust(size // 4, '0')
        print('  ' + reg + ' : ' + data)
    return step, False, False
