Jump to content

How to access function parameter in assembly?


Recommended Posts


Does anyone have any insight into how to access a function parameter from in-line assembler?

I am doing the following -

void type24Var::add(const unsigned long src)
        movf _src, W

But this will not compile and I get the message -

type24Var.cpp(68:2): error: error in built-in assembly
make[2]: [build/default/production/type24Var.o] Error 1 (ignored)

It's driving me crazy, nothing I do seems to clear the error!


Link to comment
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...