请教一个AVR小程序:假设R16里为2,用查表程序找出2的平方值,
.include "8515def.inc"
.ORG $0000
RJMP MAIN
.ORG $0010
TAB:.DB 0,1,4,9,16,25,36,49,64,81
MAIN:
LDI R16,2
LDI ZL,LOW(TAB*2)
LDI ZH,HIGH(TAB*2)
ADD ZL,R16
LPM
MOV R16,R0
H:RJMP H
执行完ADD ZL,R16后Z里面应该是0022H,但0022H地址里没有数啊?为什么我用单步调试看到R16里面是4啊?