Question

Locked

16 bit arithmatic in 8 bit ansi C

By TonyMorton ·
I have two 14 bit numbers held in 8 bit variables, upper 6 bits in one variable and lower 8 bits in another. My processor is only 8 bits. I need to compare the second number with the first and if it is larger I need to increase the first number by 1. If it is smaller I need to decrease the first number by 1. Exit if they are the same.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to IT Employment Forum
2 total posts (Page 1 of 1)  

General Discussion Forums