Write an assembly program that calculates the following function. Assume the signed integer input x is stored in registe
Posted: Tue Jul 12, 2022 8:17 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. Take x = -120. Hints: MOV, EQ, GT, LT, CMP (-1 f(x) = 0 1 if x < 0 if x = 0 if x > 0