(0)| 10/24/2009 2:30 PM | |
|
Joined: 5/28/2008 Last visit: 1/14/2026 Posts: 4522 Rating:
|
Dear adelabdo, You can use the following code: L MW 10 L MW 12 +I T MW 30 L MW 14 +I T MW 30 L MW 16 +I T MW 30 L MW 18 +I T MW 30 L MW 20 +I T MW 30 L MW 22 +I T MW 32 NOP 0 where; MW 10, MW 12, MW 14, MW 16, MW 18, MW 20, MW 22are the 7 inputs required to be added. MW 30: internalword. MW 32: Output word. = Sum of the seven inputs. _______________________________ Also if thisfunction is repeated many times in your application, you can makeyour own SUM function. Please have a look on the attached pictures. AttachmentSUM_7.zip (126 Downloads) |
|
Ayman Elotaify |
|
This contribution was helpful to
|
|
Follow us on