View Single Post
Old 11 September 2019, 14:18   #25
Registered User

Join Date: Jul 2018
Location: Londonish / UK
Posts: 452
Is there a way to call an assembly routine with arguments as specific registers with this version of gcc?

I want to call a bit of existing code that takes a pointer in a0 and returns its result in d0. I'm used to adding bits to the C prototype to get this to work in other compilers, but no variation I've tried will compile under this gcc.

As far as I can tell, the gcc 8.3 manual does not cover this situation, only mixing inline assembly.

There must be a way, right? Or should I give up and write a wrapper that takes parameters from the stack?
deimos is online now  
Page generated in 0.04130 seconds with 11 queries