目录
rev R
R = {R[3:0], R[7:4]}
对寄存器R的高4位和低4位进行交换,结果存储寄存器R;
mov A, #0x34 //A = 0x34 mov R, A //R = 0x34 brev R //R = 0x43
rev A, R
A = {R[3:0], R[7:4]}
对寄存器R的高4位和低4位进行交换,结果存储到累加A;
mov A, #0xC5 //A = 0xC5 mov R, A //R = 0xC5 rev A, R //A = 0x5C