This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/MSP430G2553:寄存器的二进制补码、有符号和无符号

Guru**** 2561710 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/812730/ccs-msp430g2553-2s-complement-of-register-in-signed-and-unsigned

器件型号:MSP430G2553

工具/软件:Code Composer Studio

您好!

我正在处理一些项目和寄存器值二进制文件 、如

数据表中的"00 0000 0000 "-14位表示值存储在有符号二进制补码中、因此这和另一个的确切值是多少

"0 0000 0000 "-13位现在这个是存储无符号二进制补码、那么这个值是多少?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Yash、

    二进制补码为零、与您正在处理的位数无关。

    有关  二进制补码如何用于有符号二进制数的更多信息,请参阅 Web (www.electronics-tutorials.ws/.../signed-binary-numbers.html)。

    此致、

    Matt