C
A B C | X Y
---------+------
0 0 0 | 0 1
0 0 1 | 0 1
0 1 0 | 0 1
0 1 1 | 1 1
1 0 0 | 1 0
1 0 1 | 1 1
1 1 0 | 1 0
1 1 1 | 1 1
Design two logic circuits for this function, one using AND, OR and NOT gates only, and one using
NAND gates only. You DO NOT HAVE to draw the circuit, but it might
be helpful to do that to visualize and trace the logic. However, for this question you are only
required to write the four formulas — one for computing X and one for computing
Y for each circuit type. They can take the form of a logical equation such asX := A and B
or such as
Y := not-B and (A or C)
.Cprogram to play the game
fizz-buzz. This game lists all integer numbers from one to
fizz
buzz
fizz-buzz
Stanley/Penguinsingle-accumulator computer discussed in class, write a complete assembly language program in the
Stanley/Penguinlanguage that sends the values
Stanley/Penguinlanguage program in the previous problem to machine language.
stanley/penguinlanguage that computes a greatest common divisor. Assume the two inputs are read in from port
stanley/penguinlanguage, that swaps the accumulator and memory address
stanley/penguinlanguage that has the effect of jumping to the code at address
r8 and
r9. After executing these instructions, what does the programmer notice about the
data? [HINT: It will help if you pick some binary values and walk through the operations.]
xor r8, r9
xor r9, r8
xor r8, r9
Part 2 of 2: Also state as briefly as possible why that effect happens.