Skip to content

Instantly share code, notes, and snippets.

for seg_ea in Segments():
for ea in Heads(seg_ea, get_segm_end(seg_ea)):
if is_code(get_full_flags(ea)):
n = 0
while n < 6:
t = get_operand_type(ea, n)
if (t == -1):
break
from idaapi import *
import struct
sizeBuf = GetManyBytes(0x1A0, 8)
romStart, romEnd = struct.unpack(">II", sizeBuf)
buf = GetManyBytes(romStart, romEnd+1)
i = 0
while True:
i = buf.find("RNC", i+1)
if i == -1:
# Filename : Image2Map.py
# Authors : Georg Muntingh and Bjorn Lindeijer
# Version : 1.2
# Date : June 16, 2010
# Copyright : Public Domain
import os, sys, Image, networkx
class TileMap:
""" This class represents a map of tiles.