Explore BrainMass

Marie assembly language: Computing absolute value of number

Write a complete program in assembly language for the Marie computer, to compute the absolute value of a number. Please refer to the attachment for more details.


Solution Preview

Attached assembly program (306416.mas) takes the input from user and leaves the absolute value of input number in location ZABS before ...

Solution Summary

Program minimizes the number of instructions used to compute the absolute value.