简体   繁体   English

8位二进制数之前B和b之间的差异

[英]Difference between B and b before 8-bit binary number

I am looking at some MPASM firmware code where 8-bit binary numbers are being loaded into status registers at the beginning of the program to set up the processor. 我正在查看一些MPASM固件代码,其中在程序的开头将8位二进制数加载到状态寄存器中以设置处理器。

#define DEF_INTCON  B'10100000'
#define DEF_OPTION  B'10000111'       
#define GPIO_TRIS   B'11010000'      
#define DEF_GPIO    B'00000000'       
#define DEF_ANSEL   B'01111000'        
#define AN0_ADCON0  b'00000001'       ; CHS<2:0> 000 above settings for AN0
#define AN1_ADCON0  b'00000101'       ; CHS<2:0> 001 above settings for AN1
#define AN3_ADCON0  b'00001101'       ; CHS<2:0> 011 above settings for AN3
#define DEF_ADCON0  AN3_ADCON0  

What is the difference between the big B and the little b? 大B和小B有什么区别?

They're the same. 他们是一样的。 The radix types aren't case sensitive. 基数类型不区分大小写。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM