View Single Post
  #1 (permalink)  
Old October 9th, 2007, 12:42 AM
smithyluke smithyluke is offline
Registered User
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to average a series of integers using assembly


Will someone help me on how I should start this?
I am trying to write a program that will find the average of a series of integers and store the result in the BX and AX registers.
e.g
Main array = 4, 1, 28, 11, 2, -28, -7
The result will be
(Quotient) BX = 1
(Remainder) AX = 5

I am just trying to learn assembly language, so even how to start this...I will appreciate it so much.

any hints, links...will be very thankful.

I am using visual studio c++!