Ejemplo n.º 1
0
 public static UInt16 GETBWORD(xMemory mm, UInt32 a)
 {
     return((UInt16)(
                (mm.ReadByte((UInt32)(a + 0)) * 256)
                + mm.ReadByte((UInt32)(a + 1))
                ));
 }
Ejemplo n.º 2
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))));
 }