目录
rsh R
无
1
R = R >> 1
寄存器R右移1位,结果存储到寄存器R;
1 2 3 4
//0xAA >> 1 mov A, #0xAA //A = 0xAA mov 0x81, A //[0x81] = 0xAA rsh 0x81 //[0x81] = 0x55
rsh A, R
A = R >> 1
寄存器R右移1位,结果存储到累加器A;
//0x56 >> 1 mov A, #0x56 //A = 0x56 mov 0x83, A //[0x83] = 0x56 rsh A, 0x83 //A = 0x2B