
It would be highly desirable if the same hardware could execute program written in Python,Java,C or any high-level language.
It is also not sensible to execute every feature of a high-level language directly in hardware

An assembly Language Program is a sequence of instructions which execute in a sequential order unless a control instruction is to be executed.
Each instruction specifies a operation supported by the processor hardware
sum = a[0] + a[1] + a[2] + … + a[n-1]

x1 <- load(base) //load data from main memory to register x1
x2 <- load(n) //load data from main memory to register x2
x3 <- 0 //let register x3 = 0
loop: //sign for repeating
x4 <- load(Mem[x1]) //load data from main Mem[x1] to register x4
add x3, x3, x4 //ALU arithmetic:data of x3 plus data of x4 and assign the sum to regeister x3
addi x1, x1, 4 //ALU arithmetic:data of x1 plus 4 and assign the sum to regeister x1
addi x2, x2, -1 //ALU arithmetic:data of x2 plus -1 and assign the sum to regeister x2
//bnez(Branch if Not Equal to Zero)
bnez x2, loop //if data(x2) != 0,retuen to the foregoing loop and excute again
store(sum) <- x3 //store data form register x3 to main Memory sum



Three Types of operations:
