Write an assembly program that calculates the following function. Assume the signed integer input x is stored in registe
Posted: Fri Jul 08, 2022 6:16 am
Write an assembly program that calculates the following function. Assume the signed integer input x is stored in register r0 and the result f(x) is saved in register r1. -1 f(x) = 0 1 if x < 0 if x = 0 if x > 0