您好!
1、当程序通过CCS生成hex文件后,所有的程序都是堆放在一起的(如下图hex文件),请问一下处理器是如何在一连串数据中区分那些是16位指令,那些是32位指令?

2、在CCS中,PC指针每次执行一条指令,处理器又是如何判断这条被执行的指令的位数了?有没有标志位?
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.
您好!
1、当程序通过CCS生成hex文件后,所有的程序都是堆放在一起的(如下图hex文件),请问一下处理器是如何在一连串数据中区分那些是16位指令,那些是32位指令?

2、在CCS中,PC指针每次执行一条指令,处理器又是如何判断这条被执行的指令的位数了?有没有标志位?
您好,
要了解该hex file的格式,请在C28x assembly tools manual 查看名为 Intel MCS-86 Object Format的子章节。 在处理时,所有内容都作为16位字的stream进行处理,这些字与某个起始地址相关联,并且具有一定的长度。 一旦事情到达 PC 中有地址并且现在是开始处理指令的时候,该怎么办?请查阅 C28x instruction set manual 中的子章节Pipelining of Instructions:
“"The decode 1 (D1) hardware identifies instruction boundaries in the instruction-fetch queue and determines the size of the next instruction to be executed."