This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于PREAD指令使用问题

CPU  :C28

使用指令:

MOV     ACC,  #_BUFFER

MOVL XAR6,ACC

MOVL XAR7,#_AdcResult      ;每次16个SOC送入缓存

RPT #15

||  PREAD  *XAR6++, *XAR7

目的:一次将16个寄存器的值转移

使用中,XAR6已指向目的地址,XAR7已指向源地址

运行后,XAR6中的内容增加了16,且指向的地址的内容也变化了:全为0。但并非源地址中的数据,

运行后,XAR7的内容没有变化。它指向的数据区的数据非全0;

下面是执行PREAD指令的前后情况

执行前:

执行后:

 附件中的图片,A:执行前,B:执行后

图片.rar