aliseek
March 31st, 2009, 09:10 AM
i try more time but i am enable to assemble this program please detail help me
thanks sir
Write a program in assembly language that calculates the sum of first five odd numbers (1, 3, 5, 7, 9) and stores the result in AX register.
You can do it with the help of loop (initialize AX register with value 0 and BX with value 1, and then on each iteration of loop add BX into AX and add value 2 in BX).
You are NOT allowed to define the data (like num1: dw 1, 3, 5, 7, 9)
thanks sir
Write a program in assembly language that calculates the sum of first five odd numbers (1, 3, 5, 7, 9) and stores the result in AX register.
You can do it with the help of loop (initialize AX register with value 0 and BX with value 1, and then on each iteration of loop add BX into AX and add value 2 in BX).
You are NOT allowed to define the data (like num1: dw 1, 3, 5, 7, 9)