我正在从一个用Java语言编写的处理器仿真器中读取源代码,下面的代码行利用>>运算符来读取存储在变量中的特定位的值。//Bits 3-5 of IR denote addressing mode of instruction
int irAddressMode = (ir >> 2) & 0x07;然而,我不理解第一行中需要>>运算符,为什么在ANDing之前需要先执行(ir >> 2),才能找到ir变量中第3-5位的值?
to set address.[ 5575.781728] usb 3-5:3-5: Device not responding to set address.
[ 5576.301606] usb 3-5: device not accepting address 104,5577.137411] usb 3-5: Device not responding to set add