在我写的时候,我添加了一组NopSi,虽然它会很正确,因为传递的参数不正确,WReG9的内容是不正确的,因此它应该被更新。而且,DSPIC如何事先知道它可以跳过指令?不管怎样,为了增加陌生感,我在几行之后评论了一个不同的函数,它毫无问题地工作。我删除了注释,代码再次工作,没有问题。第一个功能是获得正确的参数。
以上来自于百度翻译
以下为原文
as i wrote, i added a bunch of NOPs
i though it would be ovious that since the passed parameter isn't correct, the content of WREG9 was not correct, therefore it should have been updated.
Also, how can the dspic know in advance that it can skip an instruction?
Anyway, to add to the strangeness i commented out a call to a different function several lines after, it worked without problems.
I removed the comment, the code is working without problems again.. first function is getting the correct parameters.
在我写的时候,我添加了一组NopSi,虽然它会很正确,因为传递的参数不正确,WReG9的内容是不正确的,因此它应该被更新。而且,DSPIC如何事先知道它可以跳过指令?不管怎样,为了增加陌生感,我在几行之后评论了一个不同的函数,它毫无问题地工作。我删除了注释,代码再次工作,没有问题。第一个功能是获得正确的参数。
以上来自于百度翻译
以下为原文
as i wrote, i added a bunch of NOPs
i though it would be ovious that since the passed parameter isn't correct, the content of WREG9 was not correct, therefore it should have been updated.
Also, how can the dspic know in advance that it can skip an instruction?
Anyway, to add to the strangeness i commented out a call to a different function several lines after, it worked without problems.
I removed the comment, the code is working without problems again.. first function is getting the correct parameters.
举报