TheObserver
Programmer
Let's say I have four bytes of memory:
10110001 11100011 11001100 10111011
and I want to overlay/update/merge those four bytes with a pattern such as this:
00000000 00000000 11101001 11111101
such that bytes three and four are updated to the value in the map/overlay and bytes one and two stay unchanged from the original.
IE, the result would be:
10110001 11100011 11101001 11111101
How could I go about doing this, logically? An OR has been suggested, but I don't think that will work.
Thanks for your time.
10110001 11100011 11001100 10111011
and I want to overlay/update/merge those four bytes with a pattern such as this:
00000000 00000000 11101001 11111101
such that bytes three and four are updated to the value in the map/overlay and bytes one and two stay unchanged from the original.
IE, the result would be:
10110001 11100011 11101001 11111101
How could I go about doing this, logically? An OR has been suggested, but I don't think that will work.
Thanks for your time.