SPRU514Y August 2001 ā June 2022
In the C++ program in Section 8.6.2.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.