Operating Systems/OS_Assg2_pipes-main/myexpos/xsm/machine.c
int machine_interrupt_address(int int_num)
{
    if (int_num > INTERRUPT_HIGH)
        return -1;

    return (int_num * 2 + 2) * XSM_PAGE_SIZE;
}
/* Retrieve the starting address of interrupt */
Retrieve the starting address of interrupt
Retrieve the starting address of interrupt
int machine_interrupt_address(int int_num)
{
    if (int_num > INTERRUPT_HIGH)
        return -1;
    return (int_num * 2 + 2) * XSM_PAGE_SIZE;
}
int machine_interrupt_address ( int int_num ) { if ( int_num > INTERRUPT_HIGH ) return -1 ; return ( int_num * 2 + 2 ) * XSM_PAGE_SIZE ; }
Retrieve the starting address of interrupt
Retrieve the starting address of interrupt