Beispiel #1
0
 // For running pre-VM tests on methods.
 private void Test()
 {
     for (int i = 10; i >= -10; i--)
     {
         Console.WriteLine("{0}: {1}", i, BinaryUtility.ConvertIntToBinaryString(i, 16));
     }
 }
Beispiel #2
0
        private string IntToBinaryString(int num)
        {
            int width = vmConstants.BUS_WIDTH;

            return(BinaryUtility.ConvertIntToBinaryString(num, width));
        }