I want to call a C-function from an assembler-file. for example:
void asc0_SendInt(void) interrupt S0TINT using rbank_s0 { ...my code }
$MOD167 $SEGMENTED VEC_SEG EQU 2 ;Segment VEC_OFF EQU 0000H ;Offset VECT_TAB SECTION CODE AT 4 VEC_PROC PROC JMPS VEC_SEG,VEC_OFF+004H JMPS VEC_SEG,VEC_OFF+008H JMPS VEC_SEG,VEC_OFF+00CH [..] JMPS VEC_SEG,VEC_OFF+0A8H ;S0TINT [..] JMPS VEC_SEG,VEC_OFF+1F8H JMPS VEC_SEG,VEC_OFF+1FCH VEC_PROC ENDP VECT_TAB ENDS END
JMPS VEC_SEG,VEC_OFF+0A8H ;S0TINT
asc0_SendInt
Cheat. Turn on the option to generate a .src module and see how the compiler does it in the .src file. Then mimic that. The advanced programming section in the C166 compiler manual describes the resgister requirements for C and ASM parameter passing.
... or use the CODE option to add the assembler listing to your normal compiler listfile.
This is a test.