Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > Assembly Language
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Assembly Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 9th, 2007, 12:42 AM
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++!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining the average of multiple rows into one Saidar SQL Server 2005 2 December 24th, 2007 03:45 AM
Getting an average using SQL vs VBScript mat41 Classic ASP Professional 1 November 1st, 2007 06:33 PM
Unsigned integers AndrewH Java Basics 1 September 26th, 2006 02:46 PM
7Day Moving Average Gezza SQL Language 0 November 21st, 2003 02:42 AM
find the average value from a column of values codespike Classic ASP Basics 2 August 15th, 2003 07:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.