The
Disassembler
class is (partially) generated from the instruction set description. It consists a public access method
disassemble()
that given a byte array of machine code, a base address, and an index, will produce an instance of the
Instr
class that corresponds to that machine code instruction. In the case that the machine code does not represent a valid instruction, the method will
The decision tree(s) for disassembling machine code into Instr
instances is derived automatically from the ISDL description of the binary encodings of instructions. This decision tree is then translated into Java code in this class. Therefore, most of the code in this class is generated automatically.
@author Ben L. Titzer