export a function from gnu assembly to c++

export a function from gnu assembly to c++

.code32
.global interrupt0
interrupt0:

then you are free to use it in cpp :

extern void * interrupt0();
setIDTDescriptor(&IDTTable[0], (unsigned int)interrupt0, 2 << 3, 0x8e, 0, 0);

read count : 5