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.
peter,
你这种方法属于直接寻址,
MOVL XAR2,#Array1 ; Load XAR2 with start address of Array1
所以地址范围超出了。
XAR0 to XAR7 (auxiliary register pointers): In this mode, the 32-bit XARn registers behave as generic data pointers. The instruction can direct to post-increment, pre/post-decrement, or index from the current register contents with either a 3-bit immediate offset field or with the contents of another 16-bit register.
你可以参照一下TMS320C28x CPU and Instruction Set Reference Guide p133,里面的汇编指令并没有把数据放在XARn的指令。
Eric
asm(" MOV AL,#0x5555");
asm(" MOV AH,#0x5555 ");
asm(" MOVL XAR0,@ACC ");
XAR0写入了0x55555555,怎么比较,确认XAR0 = 0x55555555?
我想做的是CPUREGISTER CHECK,
先写辅助寄存器XAR0 = 0X55555555,然后比较,确认XAR0=0x55555555写入成功
然后再写辅助寄存器XAR0 = 0XAAAAAAAA,然后比较,确认XAR0=0xAAAAAAAA写入成功
确认辅助寄存器XAR0能正常工作