|How to add array of 5 numbers
|Page 1 of 1|
|Author:||dodo [ Tue Nov 04, 2014 6:55 pm ]|
|Post subject:||How to add array of 5 numbers|
IF I Want to calculate the summation of array of 5 number
should i check the number if it is positive or negative so i do add or subtract
or it works if i used ADDA ?
|Author:||profkelly [ Wed Nov 05, 2014 4:21 pm ]|
|Post subject:||Re: How to add array of 5 numbers|
If the array contains signed numbers then a simple ADD will work. Negative numbers will be treated as such. ADDA is used to add to an Address register. Not what you want to do if you are summing an array of integer numbers.
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group