Explain the function of the status register (flag register), and give an example.

What will be an ideal response?


Analysis:
The status register ( flag register) is the one used when acting on comparison statements, such as "If Greater Than ...", etc. The Status Register is a 16-bit register, however only 9 bits are utilized. The register looks as follows:
x x x x O D I T S Z x A x P x C

The 'x' represents a bit which is not used, while the letters are bits which hold the following conditions:
O Overflow Flag
D Direction
I Interrupts Enabled
T Trap Flag
S Sign of operation
Z Zero Flag
A Auxiliary Carry
P Parity Flag
C Carry Flag

As an example, when one compares two numbers and wishes to Jump to the location called Label in the program the operation which is in fact performed is the subtraction of the two numbers and a Jump is executed if the Zero Flag is set (i.e. Z=1). You may compare this to a GO TO statement in FORTRAN or Basic.

Trades & Technology

You might also like to view...

When you are passing a vehicle, pedestrian, or bicycle you should assume that:

a. They see your vehicle. b. They may be moving to your traffic lane. c. They know you are to pass.

Trades & Technology

All of the following statements are true EXCEPT:

A. a clutch replacement usually includes a new disc, release bearing, clutch cover, pilot bearing or bushing, and sometimes a flywheel and/or front transmission seal. B. asbestos fibers cannot pass through a regular vacuum bag. C. clutch parts are balanced at the factory while on the engine. D. always disconnect the battery ground cable before removing a transmission or transaxle.

Trades & Technology

What is the electrical symbol shown in the accompanying figure?

A. Range outlet B. Convenience outlet C. Wall switch D. Ceiling light fixture

Trades & Technology

What important limitation of range diagrams relating to load radiuses must operators take into account when consulting them?



a. The diagram does not show boom deflections under load.
b. Load radiuses shown on the diagram don’t relate to boom configuration.
c. Load radii as shown reflect gross capacities before any deductions.
d. The diagram pertains to net loads at the indicated load radiuses.

Trades & Technology