|
Section 14: Flags213
|
|
For example, if flag 00 is set and you use FS? , the
display will show YES. on the other
hand, if flag 00 is set and you use FC? . the display
will show NO.
|
|
Try testing flags 00 and 01 using FS? .
|
|
|
|
Example: The following program contains an infinite loop that illustrates the
operation of a flag. The program alternately displays
SET and
CLEAR by changing and testing the
status of flag 00. A flowchart for this simple program might look like the one
below.
|
|
The program assumes that flag 00 is initially set.
|
|
|