We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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