I'm trying to use an Assembler Callable Service in an inline assembly statement. I thought this would be easy, but I can't get it to work.
Here's a sample use of an assembler Callable Service:
The arguments to the CALL macro must in this case be names assigned to storage.
How do I get __asm to insert names of storage directly into the generated statement rather than copying the data or address of the data to registers and inserting the registers into the generated statement?
This topic has been locked.
2 replies Latest Post - 2010-11-24T00:46:18Z by SystemAdmin
Pinned topic Using an Assembler Callable Service in an inline assembly statement
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2010-11-24T00:46:18Z at 2010-11-24T00:46:18Z by SystemAdmin
brataj 100000816311 PostsACCEPTED ANSWER
Re: Using an Assembler Callable Service in an inline assembly statement2010-11-20T00:24:56Z in response to SystemAdminThe easiest way to get this to work is to use a C function call, and not the __asm construct. The map and linkage #pragma's can be used to ensure that the proper external name and function linkage are used by the compiler (under either Metal or regular C).
SystemAdmin 110000D4XK196 PostsACCEPTED ANSWER
Re: Using an Assembler Callable Service in an inline assembly statement2010-11-24T00:46:18Z in response to bratajBernie,
You're right. That's a lot easier.
Thanks a lot.
BTW Does anyone know a good forum for asking questions about the Assembler Callable Services?