14 typedef enum { FALSE=0, TRUE=1 } BIT;
19 BIT and_gate(BIT A, BIT B);
20 BIT xor_gate(BIT A, BIT B);
24 BIT d_latch(BIT D, BIT WE);
25 int adder(
int O1,
int O2, BIT carryIn, BIT *carryOut);
26 BIT multiplexer(BIT A, BIT B, BIT C, BIT D, BIT S1, BIT S0);
27 void decoder(BIT A, BIT B, BIT *O0, BIT *O1, BIT *O2, BIT *O3);