home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SIGNS
-
- SIGN╙ print≤ ß strinτ oµ letter≤ iε largσ forma⌠ - 1░ ° ╖ norma∞ ì
- characters«á EacΦ lette≥ i≤ 1▓ ° ╖ character≤ iε size«á Therσ ì
- arσá tw∩ space≤ betweeε eacΦ letter¼á anΣ tw∩ linσ feed≤á betweeε ì
- eacΦá string«á Tw∩á compilation≤ arσ provided╗á SIGNS╢á ha≤á si° ì
- letter≤á pe≥á strinτ anΣ i≤ suitablσ fo≥ console≤ anΣá 8░á columε ì
- printers«á SIGNS1▒á ha≤ 1▒ character≤ pe≥ linσ whicΦ fit≤ ont∩ ß ì
- 132 column printer.
-
- Thi≤á versioεá oµ thσ prograφ ha≤ beeε turneΣá froφá warmeΣá ove≥ ì
- BASI├ int∩ rea∞ Pascal«á A≤ sucΦ i⌠ i≤ mucΦ morσ flexible«á Thσ ì
- tw∩á CONSTants¼á linσ widtΦ anΣ lengtΦ oµ alphabe⌠ arσ documenteΣ ì
- in the source. WDTH works just fine.
-
- Additionally¼á readabilit∙á ha≤á beeεá improveΣá b∙á puttinτá thσ ì
- initializatioε routine≤ int∩ procedures«á Also¼ ╔ thinδ yo⌡ wil∞ ì
- be tickled by the output device routing options.
-
- Thσ UCAS┼ functioε trap≤ al∞ illega∞ letters¼á anΣ turn≤á lowe≥ ì
- casσá int∩á upper«á A≤ presentl∙ written¼á onl∙á uppe≥á casσ ì
- letter≤ anΣ blank≤ arσ formatted«
-
- Sincσ al∞ BASI├ languagσ variable≤ arσ lega∞ iε Pascal¼ thσ name≤ ì
- werσ no⌠ changed« Iε thσ revision¼ ╔ succeedeΣ iε eliminatinτ ß ì
- couple altogether.
-
- Fillinτ thσ ┌ arra∙ presenteΣ ß problem« Initiall∙ ╔ haΣ planneΣ ì
- t∩ d∩ i⌠ thus║
- mult := 1; {declared as integer}
- for a := 5 downto 1 do
- begin
- z[a] := mult;
- mult := mult * 10;
- end;
- Thi≤á resulteΣ iε ß run-timσ multiplicatioε error«á Thσ brutσ ì
- forcσ methoΣ works¼ th∩ i⌠ certainl∙ i≤ no⌠ a≤ elegant«
-
- Thσá mos⌠á difficul⌠ par⌠ oµ convertinτ thi≤ prograφá froφá BASI├ ì
- wa≤á fillinτ thσ arra∙ containinτ thσ characte≥ fon⌠á -- L«á Iε ì
- BASI├á thi≤á i≤ donσ withiε thσ prograφ usinτ ßá serie≤á oµá DAT┴ ì
- statements╗á fo≥ whicΦ therσ i≤ n∩ analoτ iε Pascal« Herσ i≤ ho≈ ì
- thσ fon⌠ i≤ stored¼á shoulΣ yo⌡ wisΦ t∩ alte≥ o≥ adΣ t∩ it« EacΦ ì
- linσ iε thσ "font.dató filσ consist≤ oµ ß strinτ oµ 8
- characters:
- Char ASCII (val-64) Binary
- _ 95 31 11111
- P 80 16 10000
- P 80 16 10000
- ^ 94 30 11110
- P 80 16 10000
- P 80 16 10000
- P 80 16 10000
- F -- label, now used to fill L$ array.
- è
-
- 1
-
-
-
-
-
-
-
-
- Thσ abovσ i≤ thσ representatioε oµ thσ lette≥ "F"«á Onl∙ ì
- printablσá character≤ caε bσ useΣ a≤ par⌠ oµ thσ fon⌠á string¼ ì
- a≤áá m∙áá tex⌠á edito≥á filter≤á thσá contro∞áá characters(fo≥ ì
- starters)«á Fo≥á tha⌠ reason¼á thσ prograφ use≤ thσá uppe≥á casσ ì
- serie≤á anΣ convert≤ t∩ thσ number≤ needeΣ usinτ thσ (val-64⌐ ì
- function«á Iµá SIGN╙á i≤á useΣá a≤á ßá subroutinσá iεá anothe≥ ì
- program¼ sugges⌠ tha⌠ array≤ ╠ anΣ Lñ bσ declareΣ globally« Als∩ ì
- removσá procedurσ SETARRA┘ froφ thσ nes⌠ anΣ makσ i⌠ par⌠á oµ ì
- prograφá initialization«á Tha⌠ wa∙ "font.dató wil∞á onl∙á bσ ì
- calleΣ once«
-
- Improvements and comments welcome:
- Rex A Buddenberg
- 1910 Ash Street
- North Bend, Or 97459
- h)503/756-2180
- Revised 13 March 1983
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2
-
-
-
-
-