I'm reading a book that uses the little computer 3 comp.
This ISA has very limited instructions (16).
ADD AND BR JMP JSR JSRR LD LDI LDR LEA NOT RET RTI ST STI STR TRAP
The problem is that I need to create a logical right shift using only this instructions. I know this is easily accomplish using division, but this processor has no division instruction and its not allowed.
Can someone please help implement this algorithm.
for (i=1; i<16; i++)