|
Forum Index : Microcontroller and PC projects : Sign extending a value from any bit
| Author | Message | ||||
| CaptainBoing Guru Joined: 07/09/2016 Location: United KingdomPosts: 2171 |
New Function posted to the library to sign extend any bit to the full 64 bit width of an integer. Useful for making two's compliment bytes play nicely in eight byte integers (like the temperature register of the DS3231 and variants). http://fruitoftheshed.com/MMBasic.Sign-Extend-an-Integer.ashx?&NS=MMBasic |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |