Skip to content

Bit Copy

Simon Amtoft Pedersen edited this page May 22, 2020 · 2 revisions

There is a single Bit Copy instruction. Below is an example of its usage:

bcopy r2 = r0, 4, p0

Sets r2 equal to r0, but replaces bit number 4 with the bit in p0. Since p0 is always 1 and r0 is always 0, then r2 will be set to 16.

Clone this wiki locally