How would you implement in the assembler a


The NIOS-II instruction set includes several shift instructions. They include logical-shiftleft, logical-shift-right,and arithmetic-shift-right. Other architectures only provide an arithmeticshift- right instruction.

a) Why doesn't NIOS-II offer an .arithmetic-shift-left. opcode?

b) How would you implement in the assembler a logical-shift-left(LSL) pseudo-operation for a machine that didn.t have this particular instruction? Be sure your LSL instruction can shift up to W-bits where W is the machine word size in bits.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: How would you implement in the assembler a
Reference No:- TGS0628889

Expected delivery within 24 Hours