fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int Address = 0x181BA700;
  8. int byte1 = Address >> 24;
  9. int byte2 = (Address >> 16) & 0xFF;
  10. int byte3 = (Address >> 8) & 0xFF;
  11. int byte4 = Address & 0xFF;
  12. Console.WriteLine("A: " + byte1.ToString("X")
  13. + ", B: " + byte2.ToString("X")
  14. + ", C: " + byte3.ToString("X")
  15. + ", D: " + byte4.ToString("X"));
  16. }
  17. }
Success #stdin #stdout 0.03s 23944KB
stdin
Standard input is empty
stdout
A: 18, B: 1B, C: A7, D: 0