sniper007 New Member Aug 20, 2010 #1 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: Aug 20, 2010
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 ?
X xpi0t0s Member Aug 21, 2010 #2 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.
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.
ericgibbs Well-Known Member Most Helpful Member Aug 21, 2010 #3 sniper007 said: 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 ? Click to expand... hi s7, Look at these links, the first link is to maths subroutines for the PIC. Binary Arithmetic Binary Numbers - Adding and subtracting binary numbers **broken link removed**
sniper007 said: 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 ? Click to expand... hi s7, Look at these links, the first link is to maths subroutines for the PIC. Binary Arithmetic Binary Numbers - Adding and subtracting binary numbers **broken link removed**
Nigel Goodwin Super Moderator Most Helpful Member Aug 22, 2010 #4 ericgibbs said: hi s7, Look at these links, the first link is to maths subroutines for the PIC. Binary Arithmetic Binary Numbers - Adding and subtracting binary numbers **broken link removed** Click to expand... I think you missed the title Eric He's looking for 68000 details.
ericgibbs said: hi s7, Look at these links, the first link is to maths subroutines for the PIC. Binary Arithmetic Binary Numbers - Adding and subtracting binary numbers **broken link removed** Click to expand... I think you missed the title Eric He's looking for 68000 details.