Marcin Bartoszewicz
Maciej Czucha
WY=(X and 0001)+(Y and 0011), gdzie X, Y są wprowadzane z klawiatury
|
I2 |
I1 |
I0 |
|
C1 |
C0 |
|
CT |
BT |
AT |
CC |
BC |
AC |
|
W1 |
W2 |
|
|
|
|
|
|
|
|
|||||||||||
Wczytanie”A” Wczytanie”B” |
0 |
0 |
0 |
|
0 |
0 |
|
0 |
0 |
0 |
0 |
0 |
0 |
|
0 |
0 |
|
|
0 |
0 |
0 |
|
0 |
1 |
|
1 |
0 |
1 |
0 |
0 |
1 |
|
0 |
0 |
|
|
0 |
0 |
0 |
|
1 |
0 |
|
1 |
0 |
1 |
0 |
1 |
1 |
|
0 |
0 |
|
|
0 |
0 |
0 |
|
1 |
1 |
|
0 |
1 |
1 |
0 |
1 |
0 |
|
0 |
0 |
|
|
|
|
|
|
|
|
|||||||||||
Ustawienie 1110 na RC |
0 |
0 |
1 |
|
0 |
0 |
|
0 |
0 |
0 |
0 |
0 |
0 |
|
1 |
1 |
F=1 |
|
0 |
0 |
1 |
|
0 |
1 |
|
0 |
0 |
1 |
1 |
0 |
0 |
|
1 |
0 |
|
|
0 |
0 |
1 |
|
1 |
0 |
|
0 |
0 |
1 |
1 |
0 |
1 |
|
X |
0 |
|
|
0 |
0 |
1 |
|
1 |
1 |
|
1 |
0 |
0 |
0 |
1 |
1 |
|
X |
X |
|
|
|
|
|
|
|
|
|||||||||||
Tworzenie maski nr 1 |
0 |
1 |
0 |
|
0 |
0 |
|
0 |
0 |
0 |
0 |
0 |
0 |
|
0 |
0 |
F=A+B |
|
0 |
1 |
0 |
|
0 |
1 |
|
0 |
1 |
1 |
1 |
0 |
0 |
|
1 |
0 |
|
|
0 |
1 |
0 |
|
1 |
0 |
|
0 |
1 |
1 |
1 |
0 |
1 |
|
X |
1 |
|
|
0 |
1 |
0 |
|
1 |
1 |
|
1 |
0 |
0 |
0 |
1 |
1 |
|
X |
X |
|
|
|
|
|
|
|
|
|||||||||||
Nakładanie maski na “A” |
0 |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