SPRU514Z July 2001 – October 2023 SM320F28335-EP
In the C++ program in Example7-1, the extern “C” declaration tells the compiler to use C naming conventions (i.e., no name mangling). When the linker resolves the .global _asmfunc reference, the corresponding definition in the assembly file will match.
The parameter i is passed in register AL.