Modify the program counter in coldfire v2.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Modify the program counter in coldfire v2.

1,565 次查看
b_q_j
Contributor I
I am trying (without success) to change the program counter from where it is executing in flash (a loader program), to the location of an .s19 file in SRAM, to begin executing.  If anyone has an explanation or an example, it would be most helpful.  btw I am using a M5213EVB. 

Thanks,
Brandon

标签 (1)
0 项奖励
回复
2 回复数

371 次查看
admin
Specialist II
Hmm, not sure what the problem could be. In assembly language, you would use the JMP instruction. In a C program, you would use a function call at a specific address:
((void (*)(void))0x12345678)();
Regards,
- mike
0 项奖励
回复

371 次查看
b_q_j
Contributor I
I had never seen that before!  Perfect, thank you!

-Brandon
0 项奖励
回复