A Register Machine with registers A, B and C initially Register A has a value of x and all other register remain empty.
a) Construct a Register Machine task with computing the integer value of x/2 , the result should be stored in C. Hence if x is 4 result is 2 , if x is 3 result is 1. [10 marks]
b) Write the register program for this machine. [10 marks]