Add Two Numbers



To implement a program that computes the sum of two numbers.



The following program to compute the sum and its equivalent low-level instructions executed by the hardware. The low-level instructions used are:

assign It assigns a value to a variable
load    It loads a value of a global or local variable to the given register
store It stores the value from the given register to the global or local variable
add It adds the values contained in two registers and puts the result in the first register.
out It prints the output value to the screen.