The following guidelines are expected for all homework submissions:
all over the mapon my computer or printer. USE SPACES INSTEAD. You can set up almost every modern text editor to insert spaces whenever you press the TAB key, or you can simply pound the spacebar.
pair programmingwhich is part of the Extreme Programming [Agile] software development method. Feel free to collaborate in your pairs as much as you want, doing the entire assignment together. Only submit ONE copy for the both of you.
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 two formulas — one for computing X and one for computing
Y. They can take the form of a logical equation such asX := A and B
or such as
Y := not-B and (A or C)
.stanley/penguin language that sends the values 0 through
255 out to port 0x8. NOTE: the machine code for this will be written in
the next problem.
stanley/penguin language that computes a greatest
common divisor. Assume the two inputs are read in from port 0x100. Write the result
to port 0x200. You do not need to write machine code for this problem.
stanley/penguin language, that swaps the accumulator
and memory address 0x30AA. You do not need to write machine code for this problem.
stanley/penguin language that has the effect of
jumping to the code at address 0x837BBE1 if the value in the accumulator is greater
than or equal to 0. You do not need to write machine code for this problem.
r8 and r9.
After executing these instructions, what does the programmer notice about the data?
xor r8, r9
xor r9, r8
xor r8, r9
Part 2 of 2: Also state as briefly as possible why that effect happens.