To implement a program to swap two numbers.
The program to swap two numbers and its equivalent low-level instructions executed by the hardware. The low-level instructions used are:
|It assigns a value to a variable
|It loads a value of a global or local variable to the given register
|It stores the value from the given register to the global or local variable
|It prints the output value to the screen.
|It copies the value of a variable between segments of memory.
|It pushes a variable on to the stack
|It pops out the variable out of the stack
|It initiates a call to the given function.
|It changes the control of execution to the called function.
|It returns the control from the called function to the caller.
|Signifies the end of program