This is my script for the H8_536 processor used in a number of Suzuki ECUs, including US OBD2 models. This script names CPU registers and intterupt vectors and uses the interrupt vectors to performs code disassembly.
For some reason I can't link to the file so here it is in full:
[code]
// H8_536.idc // RhinoPower Ltd // 7th March 2012 // Names interrupt vectors and disassembles the code pointed to by them // Names registers // Does not name interrupt service routines because these could by called from more than one place (ie start address is often defined for all unused interrupts) // http://www.rhinopower.org
#include <idc.idc>
static main() {
auto i; auto codestart;
// define all vectors // and seek out code
for(i=0;i<256;i=i+2){ MakeWord(i); } // they are all 16-bit so do that first