public class Main {
public static void main(String[] args) {
Reader reader = new Reader();
byte[] bytecode = reader.readBytecode("example.xapi");
List<Instruction> instructions = reader.parseInstructions(bytecode);
for (Instruction instruction : instructions) {
System.out.println("Opcode: " + instruction.getOpcode());
System.out.println("Operands: " + Arrays.toString(instruction.getOperands()));
System.out.println();
}
}
}