printInstructions

fun printInstructions(recursionMap: IdentityHashMap<A_BasicObject, Void>, indent: Int, action: (Int, Int, String) -> Unit)

Output the disassembly, one instruction at a time, to the provided function that takes the instruction pc and print representation.

Parameters

recursionMap

The (mutable) IdentityHashMap of A_BasicObjects to avoid recursing into while printing the level one.

indent

The number of tabs to output after each line break.

action

What to do with each pc, source line number, and corresponding disassembled instruction.