Part Number:TMS320F280025
如题,如何获取PC寄存器的值?
在CCS进行在线Debug时,可以查看PC寄存器的值,如何在代码中获取PC的值呢?
Ben Qin:
你好,我咨询下资深工程师后回复您。
,
Ben Qin:
你好,抱歉回复晚了,参考下这两个文件:
c28x_core_registers.h
c28x_core_registers.asm
,
BarbiQ -:
You do not have permission to view this directory or page.
无法查看这2个文件
,
Ben Qin:
c28x_core_registers.asm
c28x_core_registers.h
,
yang huang:
请问一下,如果是其他寄存器(例如,ACC、P、XT等寄存器),这些寄存器的值又该如何通过程序获取了?
,
Ben Qin:
我查看下相关资料后回复您。
,
yang huang:
请问一下有没有具体的方法呢?
,
Ben Qin:
我也不确定。我已向相关工程师咨询,一旦有回复会立即回复您。
,
Ben Qin:
__get_XT:PUSH XT;; push the XT value onto the stackPOPACC ;; pop the value into ACC to return to the calling functionLRETR__get_P:PUSH P;; push the P value onto the stackPOPACC ;; pop the value into ACC to return to the calling functionLRETR__get_ACC:LRETR;; return ACC to the calling function可以尝试下上面的代码。