Here you can find the source of printMemoryInstruction(byte[] instruction)
public static void printMemoryInstruction(byte[] instruction)
//package com.java2s; //License from project: Open Source License public class Main { public static void printMemoryInstruction(byte[] instruction) { for (int i = 0; i < instruction.length; i++) { System.out.print(//from w w w. jav a 2 s . co m String.format("%8s", Integer.toBinaryString(instruction[i] & 0xff)).replace(' ', '0') + " "); if (i % 4 == 3) System.out.println(); } } }