32 lines
775 B
C#
32 lines
775 B
C#
namespace TestConsole
|
|
{
|
|
using System;
|
|
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
//uint address = 536870912;
|
|
//var addressBytes = BitConverter.GetBytes(address);
|
|
|
|
//Console.WriteLine(BitConverter.ToString(addressBytes));
|
|
|
|
//var a = BitConverter.ToUInt32(addressBytes, 0);
|
|
//var b = BitConverter.ToUInt32(addressBytes.Reverse().ToArray(), 0);
|
|
|
|
//Console.WriteLine($"a: {a}");
|
|
//Console.WriteLine($"b: {b}");
|
|
|
|
for (byte i = 0; true; i++)
|
|
{
|
|
Console.WriteLine($"0x{i:X2} = {i}");
|
|
|
|
if (i == byte.MaxValue)
|
|
{
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|