inline assembler interrupts

Frank Benoit keinfarbton at nospam.xyz
Wed Jun 28 12:55:26 PDT 2006


I did not test it, but perhaps this works:

const uint DOS_IRQ_VECTOR = 0x21;

void callIrq( ushort interrupt_code ){
  asm{
    mov AH, interrupt_code ;
    int DOS_IRQ_VECTOR ;
  }
}



More information about the Digitalmars-d mailing list