EASy68K  
It is currently Mon Oct 23, 2017 4:03 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Nov 04, 2014 6:55 pm 
Offline

Joined: Fri Oct 31, 2014 11:20 pm
Posts: 3
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 ?


Top
 Profile  
 
PostPosted: Wed Nov 05, 2014 4:21 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1048
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.

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group