code question about AN3748

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

code question about AN3748

1,071 次查看
carloAT
Contributor I

Hi!

 

In the main file there is this definition of a function pointer:

 

void  (* const _UserEntry[])() @0x000011E4=    // modificato @0x000011C0=
{
  0x4E714EF9,           //asm NOP(0x4E71), asm JMP(0x4EF9)         
  _startup,
};

 

What does the code inside do?

If i look at the memory with the debugger, I see that at address 0x000011C0 there is

4E 71 4E F9 00 00 12 EC

I have never seen this syntax before but I assume that 0x4E714EF9 copy this value in the memory. What's the point of saving this value in memory? There is a comment with a jump. Does it jump to this value?

 

Where 00 00 12 EC come from? Is it the address of _startup?

 

I would be happy if anyone could explain me what this code does.

 

Thanks!

CA

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

534 次查看
carloAT
Contributor I
up :smileyhappy:
0 项奖励
回复