else | /* now PC1 is change to low | */ |
{ |
|
|
CNT_L2++; |
|
|
} | /* to generate a high pulse | */ |
invert=invert^2; | ||
} | /* INT_CHAN_2 is active | */ |
if ((int_c&0x4)!=0) | ||
{ |
| */ |
if ((new_int_state&0x4)!=0)/* now PC2 is change to high | ||
{ |
|
|
CNT_H3++; |
|
|
} | /* now PC2 is change to low | */ |
else | ||
{ |
|
|
CNT_L3++; |
|
|
} | /* to generate a high pulse | */ |
invert=invert^4; | ||
} | /* INT_CHAN_3 is active | */ |
if ((int_c&0x8)!=0) | ||
{ |
| */ |
if ((new_int_state&0x8)!=0)/* now PC3 is change to high | ||
{ |
|
|
CNT_H4++; |
|
|
} | /* now PC3 is change to low | */ |
else | ||
{ |
|
|
CNT_L4++; |
|
|
} | /* to generate a high pulse | */ |
invert=invert^8; | ||
} |
|
|
now_int_state=new_int_state; outportb(wBase+0x2a,invert);
if (wIrq>=8) outportb(A2_8259,0x20); outportb(A1_8259,0x20);
}