movc¶
movc R¶
指令格式¶
movc R
影响标志¶
无
伪指令¶
1 | {IAPDATH, R} = read_rom({IAPADRH, IAPADRL}) |
指令描述¶
按照IAPADRH和IAPADRL指定的地址读取程序存储区数据,存入IAPDATH和寄存器R中;
范例¶
1 2 3 4 5 6 7 8 9 10 | cseg at 0x200 dw 0x4AC3 //rom[0x200] = 0x4AC3 cseg ... clr IAPADRL //IAPADRL = 0x00 mov A, #0x02 //A = 0x02 mov IAPADRH, A //IAPADRH = 0x02 movc 0xAB //IAPDATH = 0x4A, [0xAB] = 0xC3 ... |