Write a program using MARIE’s assemblylanguage. The program consists of a main program and a subroutine.It uses the subroutine to process a given number. If the value ofthe number is negative, the value will be replaced with zero andreturned. Otherwise, the value is doubled and returned. Then, inthe main program, it calls the subroutine to process for X = -3 andsaves the value after the processing.
Expert Answer
Answer to Write a program using MARIE’s assembly language. The program consists of a main program and a subroutine. It uses the …