Swap Two Numbers

 

Aim:

To implement a program to swap two numbers.

 

Instructions:

The program to swap two numbers 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
out It prints the output value to the screen.
copy It copies the value of a variable between segments of memory.
push It pushes a variable on to the stack
pop It pops out the variable out of the stack
fcall It initiates a call to the given function.
fenter It changes the control of execution to the called function.
freturn It returns the control from the called function to the caller.
exit Signifies the end of program