Motorola MC68000

Status
Not open for further replies.

sniper007

New Member
Hi guys!

I need some help. I'd like to write program which calculate average number of some 16bit signed numbers which is stored in memory.

I don't know how to add 16bit signed numbers ?

can you please help me ?
 
Last edited:
Do you remember doing sums at school? For example:

19
27+
==

9+7=16, so write 6 and carry the 1. 1+2 is 3, plus the carry is 4. That's basically the algorithm you need to implement.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…