Firmware calling convention - General Discussion and Assistance - CHDK Forum supplierdeeply

Firmware calling convention

  • 2 Replies
  • 1825 Views
*

Offline RaduP

  • *****
  • 926
Firmware calling convention
« on: 17 / October / 2009, 03:47:58 »
Advertisements
It seems to me that some functions from the firmware pass arguments by registers (most of them), but some use the stack as well (and registers too).
So when the parameters are passed by registers, parameter 1 is r0, parameter 2 is r1, and so on, right?

Now, can someone explain why sometimes the stack is used as well?

*

Offline reyalp

  • ******
  • 14098
Re: Firmware calling convention
« Reply #1 on: 17 / October / 2009, 04:34:24 »
« Last Edit: 17 / October / 2009, 04:36:48 by reyalp »
Don't forget what the H stands for.

*

Offline RaduP

  • *****
  • 926
Re: Firmware calling convention
« Reply #2 on: 17 / October / 2009, 05:58:38 »
Oh, ok, thanks for the links!

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal