目录
rolc R
C Z
C
Z
1 2
{C, R} = {R, C} Z = R ? 0 : 1
带状态C对寄存器R循环左移1位,结果存储到寄存器R;
1 2 3 4 5
//0x74 << 1 //C = 1, AC = 0, Z = 0, OV = 0 mov A, #0x74 //A = 0x74 mov 0xE0, A //[0xE0] = 0x74 rolc 0xE0 //[0xE0] = 0xE9, C = 0, AC = 0, Z = 0, OV = 0
rolc A, R
{C, A} = {R, C} Z = A ? 0 : 1
带状态C对寄存器R循环左移1位,结果存储到累加器A;
//0x85 << 1 //C = 0, AC = 0, Z = 0, OV = 0 mov A, #0x85 //A = 0x85 mov 0xF2, A //[0xF2] = 0x85 rolc A, 0xF2 //A = 0x0A, C = 1, AC = 0, Z = 0, OV = 0