def main():
test_targets = (    <EOL>[ARCH_I386, MACH_I386_I386_INTEL_SYNTAX, ENDIAN_MONO, "<STR_LIT>", <NUM_LIT>],<EOL>[ARCH_I386, MACH_X86_64_INTEL_SYNTAX, ENDIAN_MONO, "<STR_LIT>", <NUM_LIT>],<EOL>[ARCH_ARM, MACH_ARM_2, ENDIAN_LITTLE, "<STR_LIT>", <NUM_LIT>],<EOL>[ARCH_MIPS, MACH_MIPSISA32, ENDIAN_BIG, "<STR_LIT>", <NUM_LIT>],<EOL>[ARCH_POWERPC, MACH_PPC, ENDIAN_BIG, "<STR_LIT>", <NUM_LIT>],<EOL>)<EOL>for target_arch, target_mach, target_endian, binary, address in test_targets:<EOL><INDENT>opcodes = Opcodes(target_arch, target_mach, target_endian)<EOL>print("<STR_LIT>" %(opcodes.architecture_name, opcodes.machine))<EOL>print("<STR_LIT>")<EOL>for vma, size, disasm in opcodes.disassemble(binary, address):<EOL><INDENT>print("<STR_LIT>" % (vma, size, disasm))<EOL><DEDENT><DEDENT>
Test case for simple opcode disassembly.