4. (20 pts) Write an assembly program that calculates the following cost function. Assume the unsigned integer input x is stored in register r0 and the cost is in register rl 9% if x 10 8x ifx >10 andx 100 7x if x > 100 and 1000 6x ifx 1000 cost(x) – Show transcribed image text 4. (20 pts) Write an assembly program that calculates the following cost function. Assume the unsigned integer input x is
OR
OR