Programming the 6502, Fourth Edition
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
PDF page 12
BASIC CONCEPTS X is true, then take action A, else B. Instead of presenting a formal definition of flowcharts at this point, we will introduce and discuss flowcharts later on in the book when we present programs. Flowcharting is a highly recommended intermediate step be- tween the algorithm specification and the actual coding of the solu- tion. Remarkably, it has been observed that perhaps 10% of the programming population can write a program successfully with- out having to flowchart. Unfortunately, it has also been observed that 900'/o of the population believes it belongs to this 100/o ! The result: 80% of these programs, on the average, will fail the first time they are run on a computer. (These percentages are naturally not meant to be accurate.) In short, most novice programmers sel- dom see the necessity of drawing a flowchart. This usually results in ''unclean'' or erroneous programs. They must then spend a long time testing and correcting their program (this is called the START READ TEMPERATURE SETIING "T" ON THERMOSTAT BOX 2 READ ACTUAL ROOM TEMPERATURE "R • FROM THERMOMITTR OR OTHER SENSOR NO (ROOM TOO COLD) HEATERON 4 (OPTIONAL DELAY) YES (ROOM TOO HOT!) 5 HEATEROFF (OPTIONAL DELAY) Fig. 1-1: A Flowchart for Keeping Room Temperature Constant 9
Reading notes: OCR spacing and hyphenation irregular in the body text, e.g. 'be-tween' and 'sel-dom' may be line-break artifacts. Figure 1-1 flowchart labels are fragmented and reading order of the flowchart steps is uncertain. Percentage figures in the body text contain possible OCR errors (e.g. '900'/o' and '100/o').
- Languages
- English