FixupLeUInt16() public method

Adds the delta to the ushort at the given offset.
public FixupLeUInt16 ( uint imageOffset, ushort delta ) : ushort
imageOffset uint
delta ushort
return ushort
Exemplo n.º 1
0
		public void UShortFixup()
		{
			var bytes = new byte[] { 0x01, 0x02, 0x03 };
			var img = new MemoryArea(Address.SegPtr(0x0C00, 0), bytes);
			ushort newSeg = img.FixupLeUInt16(1, 0x4444);
			Assert.AreEqual(0x4746, newSeg);
		}