5 #include "fcs_trg_base.h"
15 void fcs_trg_base::stage_3_201900(
link_t link[], u_short *dsm_out)
23 if((link[2].d[0] & 0x07)>0) *dsm_out |= 0x1;
24 if((link[2].d[0] & 0x38)>0) *dsm_out |= 0x2;
25 if((link[2].d[1] & 0x07)>0) *dsm_out |= 0x4;
26 if((link[2].d[1] & 0x38)>0) *dsm_out |= 0x8;
27 if((link[2].d[2] & 0x07)>0) *dsm_out |= 0x10;
28 if((link[2].d[2] & 0x38)>0) *dsm_out |= 0x20;
29 if((link[2].d[3] & 0x07)>0) *dsm_out |= 0x40;
30 if((link[2].d[3] & 0x38)>0) *dsm_out |= 0x80;
31 if((link[2].d[4] & 0x01)>0) *dsm_out |= 0x100;
32 if((link[2].d[4] & 0x02)>0) *dsm_out |= 0x200;
35 if(link[2].d[7] & 0x80) *dsm_out |= 0x800;
41 if((link[0].d[0] & 0x07)>0) *dsm_out |= 0x1;
42 if((link[0].d[0] & 0x38)>0) *dsm_out |= 0x2;
43 if((link[0].d[1] & 0x07)>0) *dsm_out |= 0x4;
44 if((link[0].d[1] & 0x38)>0) *dsm_out |= 0x8;
45 if((link[0].d[2] & 0x07)>0) *dsm_out |= 0x10;
46 if((link[0].d[2] & 0x38)>0) *dsm_out |= 0x20;
47 if((link[0].d[3] & 0x07)>0) *dsm_out |= 0x40;
48 if((link[0].d[3] & 0x38)>0) *dsm_out |= 0x80;
49 if((link[0].d[4] & 0x01)>0) *dsm_out |= 0x100;
50 if((link[0].d[4] & 0x02)>0) *dsm_out |= 0x200;
53 if(link[0].d[7] & 0x80) *dsm_out |= 0x800;
57 if(fcs_trgDebug>=1) printf(
"FCS STG3 output = %04x\n",*dsm_out);