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.

Trades & Technology

You might also like to view...

The HVAC system is also referred to as the ____ system of the building, providing heat, fresh or conditioned air, and ventilation.

A. mechanical B. structural C. ventilation D. reclamation

Trades & Technology

Convert as indicated giving the answer using proper significant figures.

(a) 7 255 ft·lbf to joules (b) 14.7 lbf/in² to pascals (c) 29 035 ft to m (d) 185.7 slugs/ft³ to grams per cubic centimeter (e) 32°F to Kelvin

Trades & Technology

What type of diagram contains all process plant information, including equipment, flows to and from each piece of equipment, and the explanation of those flows and products?

A) Plot Plan Diagrams (PPDs) B) Utility Flow Diagrams (UFDs) C) Engineering Flow Diagrams (EFDs) D) Electrical Diagrams

Trades & Technology

Technician A says that diesel fuel in a vehicle tank can degrade when exposed to high temperatures. Technician B says that the most volatile fractions in a diesel fuel are the ones that define the CN of the fuel. Who is correct?

A. Technician A only B. Technician B only C. Both A and B D. Neither A nor B

Trades & Technology