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);
Post Views: 2,763
2016/05/22 by admin