I'd like to know how I can perform a right shift on a Reduced Instruction Set Computer that does not offer this operation on it's own.
A left shift can be simply done by adding a register to itself but how about a right shift?
The RISC
offers only:
ADD
NOT
NXOR (XOR)
AND (NAND)
so OR
and NOR
can all be emulated by several (N)AND
and NOT
operations.