Java Memory Information printMemoryInstruction(byte[] instruction)

Here you can find the source of printMemoryInstruction(byte[] instruction)

Description

print Memory Instruction

License

Open Source License

Declaration

public static void printMemoryInstruction(byte[] instruction) 

Method Source Code

//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();
        }
    }
}

Related

  1. printMemory()
  2. printMemory()
  3. printMemory(String label)
  4. printMemory(String str)
  5. printMemoryInfo()
  6. showMemory()
  7. showMemoryInfo()