Example #1
0
 public static void PUTBLONG(xMemory mm, UInt32 a, UInt32 b)
 {
     mm.Write((UInt32)(a + 0), (byte)(b >> 24));
     mm.Write((UInt32)(a + 1), (byte)(b >> 16));
     mm.Write((UInt32)(a + 2), (byte)(b >> 8));
     mm.Write((UInt32)(a + 3), (byte)(b >> 0));
 }
Example #2
0
 public static UInt16 GETBWORD(xMemory mm, UInt32 a)
 {
     return((UInt16)(
                (mm.ReadByte((UInt32)(a + 0)) * 256)
                + mm.ReadByte((UInt32)(a + 1))
                ));
 }
Example #3
0
 public static UInt32 GETBLONG(xMemory mm, UInt32 a)
 {
     return((UInt32)(
                (mm.ReadByte((UInt32)(a + 0)) * 16777216)
                + (mm.ReadByte((UInt32)(a + 1)) * 65536)
                + (mm.ReadByte((UInt32)(a + 2)) * 256)
                + mm.ReadByte((UInt32)(a + 3))));
 }