To implement a program that computes the given number is odd or even
The following program to compute given number is odd or even 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 reads the input from to user and stores in a variable
|It performs division operation of the values contained in two registers and puts the remainder in the first register.
|Check if the values in two registers are same.
|Checks if the condition evaluated to true.
|Checks if the condition evaluated to false.
|Is used to mark the position in the low-level instructions to enable jumping to the marked position.
|Signifies the end of program