Write the LC-3 code to determine the absolute value of the input value. The input value is loaded from memory location x3100 into register R0. The absolute value will be loaded (and returned) in register R5. Hint: you may find 2's complement number representation useful. Note that absolute value of 12 is 12, absolute value of -27 is 27.
Assume your program starts at memory address x3000
Run your program on the LC3 simulator for the following two initial values at memory x3100: :
(a) x0010
(b) x9010