This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* MIT License | |
* | |
* Copyright (c) 2021 Brandon Miller (zznop) | |
* | |
* This program decodes SEGA Genesis Game Genie alphanumeric codes and displays the encoded patch information | |
*/ | |
package main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from binaryninja import BinaryView, FirmwareNinja, FirmwareNinjaMemoryAccessType, StructureType | |
from binaryninja.variable import ConstantPointerRegisterValue, ConstantRegisterValue | |
from Vector35_Sidekick.scripting.api import open_index | |
def _read_write_memory_accesses(bv: BinaryView, fwn: FirmwareNinja, index) -> None: | |
for entry in fwn.query_function_memory_accesses(): | |
func = entry.function | |
for access in entry.accesses: | |
is_read = access.type == FirmwareNinjaMemoryAccessType.ReadMemoryAccessType |
OlderNewer