Week 7 Flashcards
_____ are translated only once, and can be called many times.
Procedures
_____ have a calling mechanism involving the EIP.
Procedures
Have a return mechanism involving the system stack.
Procedures
For _________, arguments are substituted exactly as entered, without checking for memory, registers, or literals.
Macros
For _________, the entire code is substituted for each call.
Macros
Which logic gate outputs a “0” if both of its input values are the same?
i.e. If both inputs are “1” the output is a “0”, if both inputs are “0” the output is still a “0”.
XOR
What does a NAND gate do?
Finds the result of ANDing two variables, then inverts the result.
What does a NOR gate do?
Finds the result of Oring two variables, then inverts the result.
What does a XNOR gate do?
Find the result of XORing two variables, then inverts the result.
How many possible combinations of values are there for a function of n binary variables i.e. f(A, B, C)?
2^n combinations
How do I write the following truth table into a Boolean function?
A B C R
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
Select all rows where R = 1
And the values in each row
Or the resulting terms
Set R equal to the expression
R = (~A~B)C + (~A)B(~C) + A(~B~C) + ABC
Exclusive OR is the same as _____:
A and ~B OR ~A and B
Multiple internal buses simplifies what process?
Bus arbitration