A. 单片机 表格问题
MOVC就是片内数据查表啊,你弄错了吧,MOVX是访问片外的
下面的程序,如果A原本=1,那么查表后A=0078H
mov dptr,#HIGHTAB
movc a,@a+dptr
HIGHTAB: DW 0000H,0078H,0156H,0234H,0312H,0390H,0468H,0546H
DW 0625H,0703H,0781H,0859H,0937H,1015H,1093H,1171H
DW 1250H,1328H,1406H,1484H,1562H,1640H,1718H,1796H
DW 1875H,1953H,2031H,2109H,2187H,2265H,2343H,2421H
DW 2500H,2578H,2656H,2734H,2812H,2890H,2968H,3046H
DW 3125H,3203H,3281H,3359H,3437H,3515H,3593H,3671H
DW 3750H,3828H,3906H,3984H,4062H,4140H,4218H,4297H
DW 4375H,4453H,4531H,4609H,4687H,4765H,4843H,4922H
DW 5000H,5078H,5156H,5234H,5312H,5390H,5468H,5547H
DW 5625H,5703H,5781H,5859H,5937H,6015H,6093H,6172H
DW 6250H,6328H,6406H,6484H,6562H,6640H,6718H,6797H
DW 6875H,6953H,7031H,7109H,7187H,7265H,7343H,7422H
DW 7500H,7578H,7656H,7734H,7812H,7890H,7968H,8047H
DW 8125H,8203H,8281H,8359H,8437H,8515H,8594H,8672H
DW 8750H,8828H,8906H,8984H,9026H,9140H,9219H,9297H
DW 9375H,9453H,9531H,9609H,9687H,9765H,9844H,9922H