ORG 0000H
START:
MOV DPTR,#0700H;
MOV R6,#03H; 将03h赋值给R6
MOV R7,#08H; 将08h赋值给R7
MOV A,R6; 将R6的内容给累加器A
MOVC A,@A+DPTR ;将程序存储器中位于(dptr+a)地址中的数据读出,存放到寄存器a中,a = 9h
MOV 50H,A
MOV A,R7;
MOVC A, @A+DPTR;a = 40h
ADD A,50H; ;将50h内的内容与相加,a = 49h
SJMP START
ORG 0700H
TAB:
DB 0,1,4,9,16,25,36,49,64
DB 81,100,121,144,169,196,225
END
|