Describe the compare and test instructions for a microprocessor, including the two procedures by which comparisons may be performed.
What will be an ideal response?
Compare instructions compare data in the accumulator with data from a memory location or another register. The result of the comparison is not stored in the accumulator, but a flag bit might change as a result of it. Comparison may be performed by masking or bit-testing. Masking is a process of subtracting two numbers and allowing only certain bits through. The mask is a predetermined set of bits that is used to determine if certain conditions exist within the microprocessing unit. There is a disadvantage with the masking procedure because it uses an AND instruction and therefore destroys the content of the accumulator. The bit-testing procedure, although it also uses an AND instruction, does not destroy the content of the accumulator. Not all microprocessors have a bit-testing instruction.
You might also like to view...
TechnicianA says the best way to check a power tool is to plug it in and try to use it. TechnicianB says the power tool should be inspected before each use. Who is correct?
A. A only B. B only C. Both A and B D. Neither A nor B
How many full rotations of a metric micrometer are required to measure 2.5 millimeters?
A. one B. five C. ten D. twenty-five
Explain the safety precautions that should be taken when running an engine in a shop.
What will be an ideal response?
What color container is used for R-1234yf refrigerant?
A) Light blue B) Red with a white stripe C) White with a red stripe D) Yellow