Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top