home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / logo / part06 < prev    next >
SHell self-extracting ARchive  |  1987-06-25  |  37.8 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: part06

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 72 73 0a 46 |Path: uu|net!rs.F|
|00000010| 72 6f 6d 3a 20 72 73 40 | 75 75 6e 65 74 2e 55 55 |rom: rs@|uunet.UU|
|00000020| 2e 4e 45 54 20 28 52 69 | 63 68 20 53 61 6c 7a 29 |.NET (Ri|ch Salz)|
|00000030| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000040| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 53 |p.source|s.unix.S|
|00000050| 75 62 6a 65 63 74 3a 20 | 76 31 30 69 30 32 36 3a |ubject: |v10i026:|
|00000060| 20 4c 6f 67 6f 20 69 6e | 74 65 72 70 72 65 74 65 | Logo in|terprete|
|00000070| 72 20 66 6f 72 20 55 6e | 69 78 2c 20 50 61 72 74 |r for Un|ix, Part|
|00000080| 30 36 2f 30 36 0a 4d 65 | 73 73 61 67 65 2d 49 44 |06/06.Me|ssage-ID|
|00000090| 3a 20 3c 34 37 33 40 75 | 75 6e 65 74 2e 55 55 2e |: <473@u|unet.UU.|
|000000a0| 4e 45 54 3e 0a 44 61 74 | 65 3a 20 32 36 20 4a 75 |NET>.Dat|e: 26 Ju|
|000000b0| 6e 20 38 37 20 32 31 3a | 34 37 3a 32 31 20 47 4d |n 87 21:|47:21 GM|
|000000c0| 54 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|000000d0| 55 55 4e 45 54 20 43 6f | 6d 6d 75 6e 69 63 61 74 |UUNET Co|mmunicat|
|000000e0| 69 6f 6e 73 20 53 65 72 | 76 69 63 65 73 2c 20 41 |ions Ser|vices, A|
|000000f0| 72 6c 69 6e 67 74 6f 6e | 2c 20 56 41 0a 4c 69 6e |rlington|, VA.Lin|
|00000100| 65 73 3a 20 39 30 39 0a | 41 70 70 72 6f 76 65 64 |es: 909.|Approved|
|00000110| 3a 20 72 73 40 75 75 6e | 65 74 2e 75 75 2e 6e 65 |: rs@uun|et.uu.ne|
|00000120| 74 0a 0a 53 75 62 6d 69 | 74 74 65 64 20 62 79 3a |t..Submi|tted by:|
|00000130| 20 42 72 69 61 6e 20 48 | 61 72 76 65 79 20 3c 62 | Brian H|arvey <b|
|00000140| 68 40 6d 69 74 2d 61 6d | 74 3e 0a 4d 6f 64 2e 53 |h@mit-am|t>.Mod.S|
|00000150| 6f 75 72 63 65 73 3a 20 | 56 6f 6c 75 6d 65 20 31 |ources: |Volume 1|
|00000160| 30 2c 20 4e 75 6d 62 65 | 72 20 32 36 0a 41 72 63 |0, Numbe|r 26.Arc|
|00000170| 68 69 76 65 2d 4e 61 6d | 65 3a 20 6c 6f 67 6f 2f |hive-Nam|e: logo/|
|00000180| 50 61 72 74 30 36 0a 0a | 23 21 20 2f 62 69 6e 2f |Part06..|#! /bin/|
|00000190| 73 68 0a 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |sh.# Thi|s is a s|
|000001a0| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2e 20 20 52 |hell arc|hive. R|
|000001b0| 65 6d 6f 76 65 20 61 6e | 79 74 68 69 6e 67 20 62 |emove an|ything b|
|000001c0| 65 66 6f 72 65 20 74 68 | 69 73 20 6c 69 6e 65 2c |efore th|is line,|
|000001d0| 20 74 68 65 6e 20 75 6e | 70 61 63 6b 0a 23 20 69 | then un|pack.# i|
|000001e0| 74 20 62 79 20 73 61 76 | 69 6e 67 20 69 74 20 69 |t by sav|ing it i|
|000001f0| 6e 74 6f 20 61 20 66 69 | 6c 65 20 61 6e 64 20 74 |nto a fi|le and t|
|00000200| 79 70 69 6e 67 20 22 73 | 68 20 66 69 6c 65 22 2e |yping "s|h file".|
|00000210| 20 20 54 6f 20 6f 76 65 | 72 77 72 69 74 65 20 65 | To ove|rwrite e|
|00000220| 78 69 73 74 69 6e 67 0a | 23 20 66 69 6c 65 73 2c |xisting.|# files,|
|00000230| 20 74 79 70 65 20 22 73 | 68 20 66 69 6c 65 20 2d | type "s|h file -|
|00000240| 63 22 2e 20 20 59 6f 75 | 20 63 61 6e 20 61 6c 73 |c". You| can als|
|00000250| 6f 20 66 65 65 64 20 74 | 68 69 73 20 61 73 20 73 |o feed t|his as s|
|00000260| 74 61 6e 64 61 72 64 20 | 69 6e 70 75 74 20 76 69 |tandard |input vi|
|00000270| 61 0a 23 20 75 6e 73 68 | 61 72 2c 20 6f 72 20 62 |a.# unsh|ar, or b|
|00000280| 79 20 74 79 70 69 6e 67 | 20 22 73 68 20 3c 66 69 |y typing| "sh <fi|
|00000290| 6c 65 22 2c 20 65 2e 67 | 2e 2e 20 20 49 66 20 74 |le", e.g|.. If t|
|000002a0| 68 69 73 20 61 72 63 68 | 69 76 65 20 69 73 20 63 |his arch|ive is c|
|000002b0| 6f 6d 70 6c 65 74 65 2c | 20 79 6f 75 0a 23 20 77 |omplete,| you.# w|
|000002c0| 69 6c 6c 20 73 65 65 20 | 74 68 65 20 66 6f 6c 6c |ill see |the foll|
|000002d0| 6f 77 69 6e 67 20 6d 65 | 73 73 61 67 65 20 61 74 |owing me|ssage at|
|000002e0| 20 74 68 65 20 65 6e 64 | 3a 0a 23 09 09 22 45 6e | the end|:.#.."En|
|000002f0| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 36 20 28 |d of arc|hive 6 (|
|00000300| 6f 66 20 36 29 2e 22 0a | 23 20 43 6f 6e 74 65 6e |of 6).".|# Conten|
|00000310| 74 73 3a 20 20 6c 6f 67 | 6f 6d 61 6e 2e 32 0a 23 |ts: log|oman.2.#|
|00000320| 20 57 72 61 70 70 65 64 | 20 62 79 20 72 73 61 6c | Wrapped| by rsal|
|00000330| 7a 40 70 69 6e 65 61 70 | 70 6c 65 2e 62 62 6e 2e |z@pineap|ple.bbn.|
|00000340| 63 6f 6d 20 6f 6e 20 57 | 65 64 20 4a 75 6e 20 32 |com on W|ed Jun 2|
|00000350| 34 20 31 34 3a 32 37 3a | 30 32 20 31 39 38 37 0a |4 14:27:|02 1987.|
|00000360| 50 41 54 48 3d 2f 62 69 | 6e 3a 2f 75 73 72 2f 62 |PATH=/bi|n:/usr/b|
|00000370| 69 6e 3a 2f 75 73 72 2f | 75 63 62 20 3b 20 65 78 |in:/usr/|ucb ; ex|
|00000380| 70 6f 72 74 20 50 41 54 | 48 0a 69 66 20 74 65 73 |port PAT|H.if tes|
|00000390| 74 20 2d 66 20 6c 6f 67 | 6f 6d 61 6e 2e 32 20 2d |t -f log|oman.2 -|
|000003a0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000003b0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000003c0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 6f |shar: Wi|ll not o|
|000003d0| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|000003e0| 6e 67 20 66 69 6c 65 20 | 5c 22 6c 6f 67 6f 6d 61 |ng file |\"logoma|
|000003f0| 6e 2e 32 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |n.2\".el|se.echo |
|00000400| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00000410| 20 5c 22 6c 6f 67 6f 6d | 61 6e 2e 32 5c 22 20 5c | \"logom|an.2\" \|
|00000420| 28 33 36 31 31 39 20 63 | 68 61 72 61 63 74 65 72 |(36119 c|haracter|
|00000430| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00000440| 20 3e 6c 6f 67 6f 6d 61 | 6e 2e 32 20 3c 3c 27 45 | >logoma|n.2 <<'E|
|00000450| 4e 44 5f 4f 46 5f 6c 6f | 67 6f 6d 61 6e 2e 32 27 |ND_OF_lo|goman.2'|
|00000460| 0a 58 5c 66 33 70 65 6e | 64 6f 77 6e 5c 66 31 20 |.X\f3pen|down\f1 |
|00000470| 5c 28 65 6d 20 43 6f 6d | 6d 61 6e 64 2c 20 6e 6f |\(em Com|mand, no|
|00000480| 20 69 6e 70 75 74 73 2e | 20 20 41 62 62 72 65 76 | inputs.| Abbrev|
|00000490| 69 61 74 69 6f 6e 3a 20 | 5c 66 33 70 64 5c 66 31 |iation: |\f3pd\f1|
|000004a0| 0a 58 2e 49 4e 0a 58 54 | 68 69 73 20 63 6f 6d 6d |.X.IN.XT|his comm|
|000004b0| 61 6e 64 20 74 65 6c 6c | 73 20 74 68 65 20 74 75 |and tell|s the tu|
|000004c0| 72 74 6c 65 20 74 6f 20 | 6c 6f 77 65 72 20 69 74 |rtle to |lower it|
|000004d0| 73 20 70 65 6e 2c 20 73 | 6f 20 74 68 61 74 0a 58 |s pen, s|o that.X|
|000004e0| 6c 61 74 65 72 20 63 6f | 6d 6d 61 6e 64 73 20 77 |later co|mmands w|
|000004f0| 69 6c 6c 20 64 72 61 77 | 20 6c 69 6e 65 73 20 77 |ill draw| lines w|
|00000500| 68 65 6e 20 74 68 65 20 | 74 75 72 74 6c 65 20 6d |hen the |turtle m|
|00000510| 6f 76 65 73 2e 0a 58 2e | 4f 55 0a 58 5c 66 33 70 |oves..X.|OU.X\f3p|
|00000520| 65 6e 65 72 61 73 65 5c | 66 31 20 5c 28 65 6d 20 |enerase\|f1 \(em |
|00000530| 43 6f 6d 6d 61 6e 64 2c | 20 6e 6f 20 69 6e 70 75 |Command,| no inpu|
|00000540| 74 73 2e 20 20 41 62 62 | 72 65 76 69 61 74 69 6f |ts. Abb|reviatio|
|00000550| 6e 3a 20 5c 66 33 70 65 | 5c 66 31 0a 58 2e 49 4e |n: \f3pe|\f1.X.IN|
|00000560| 0a 58 54 68 69 73 20 63 | 6f 6d 6d 61 6e 64 20 74 |.XThis c|ommand t|
|00000570| 65 6c 6c 73 20 74 68 65 | 20 74 75 72 74 6c 65 20 |ells the| turtle |
|00000580| 74 6f 20 22 6c 6f 77 65 | 72 20 69 74 73 20 65 72 |to "lowe|r its er|
|00000590| 61 73 65 72 22 2c 20 73 | 6f 20 74 68 61 74 20 6c |aser", s|o that l|
|000005a0| 69 6e 65 73 0a 58 70 72 | 65 76 69 6f 75 73 6c 79 |ines.Xpr|eviously|
|000005b0| 20 64 72 61 77 6e 20 77 | 69 6c 6c 20 62 65 20 65 | drawn w|ill be e|
|000005c0| 72 61 73 65 64 20 77 68 | 65 6e 20 72 65 74 72 61 |rased wh|en retra|
|000005d0| 63 65 64 20 62 79 20 74 | 68 65 20 74 75 72 74 6c |ced by t|he turtl|
|000005e0| 65 2e 20 20 49 74 0a 58 | 6f 6e 6c 79 20 77 6f 72 |e. It.X|only wor|
|000005f0| 6b 73 20 77 69 74 68 20 | 74 68 65 20 64 69 73 70 |ks with |the disp|
|00000600| 6c 61 79 20 74 75 72 74 | 6c 65 2e 20 20 54 68 65 |lay turt|le. The|
|00000610| 20 63 6f 6d 6d 61 6e 64 | 73 20 5c 66 33 70 65 6e | command|s \f3pen|
|00000620| 75 70 5c 66 31 2c 0a 58 | 5c 66 33 70 65 6e 64 6f |up\f1,.X|\f3pendo|
|00000630| 77 6e 5c 66 31 2c 20 5c | 66 33 70 65 6e 65 72 61 |wn\f1, \|f3penera|
|00000640| 73 65 5c 66 31 2c 20 61 | 6e 64 20 5c 66 33 70 65 |se\f1, a|nd \f3pe|
|00000650| 6e 72 65 76 65 72 73 65 | 5c 66 31 0a 58 61 72 65 |nreverse|\f1.Xare|
|00000660| 20 6d 75 74 75 61 6c 6c | 79 20 65 78 63 6c 75 73 | mutuall|y exclus|
|00000670| 69 76 65 3b 20 77 68 69 | 63 68 65 76 65 72 0a 58 |ive; whi|chever.X|
|00000680| 77 61 73 20 6d 6f 73 74 | 20 72 65 63 65 6e 74 6c |was most| recentl|
|00000690| 79 20 75 73 65 64 20 69 | 73 20 74 68 65 20 6f 6e |y used i|s the on|
|000006a0| 65 20 77 68 69 63 68 20 | 61 66 66 65 63 74 73 20 |e which |affects |
|000006b0| 74 68 65 20 74 75 72 74 | 6c 65 2e 20 20 28 47 72 |the turt|le. (Gr|
|000006c0| 61 70 68 69 63 73 0a 58 | 74 65 72 6d 69 6e 61 6c |aphics.X|terminal|
|000006d0| 73 20 77 68 69 63 68 20 | 63 61 6e 6e 6f 74 20 73 |s which |cannot s|
|000006e0| 65 6c 65 63 74 69 76 65 | 6c 79 20 65 72 61 73 65 |elective|ly erase|
|000006f0| 20 6c 69 6e 65 73 2c 20 | 73 75 63 68 20 61 73 20 | lines, |such as |
|00000700| 54 65 6b 74 72 6f 6e 69 | 78 0a 58 64 69 73 70 6c |Tektroni|x.Xdispl|
|00000710| 61 79 73 2c 20 77 69 6c | 6c 20 74 72 65 61 74 20 |ays, wil|l treat |
|00000720| 5c 66 33 70 65 6e 65 72 | 61 73 65 5c 66 31 20 61 |\f3pener|ase\f1 a|
|00000730| 73 20 5c 66 33 70 65 6e | 64 6f 77 6e 5c 66 31 2e |s \f3pen|down\f1.|
|00000740| 29 0a 58 2e 4f 55 0a 58 | 5c 66 33 70 65 6e 72 65 |).X.OU.X|\f3penre|
|00000750| 76 65 72 73 65 5c 66 31 | 20 5c 28 65 6d 20 43 6f |verse\f1| \(em Co|
|00000760| 6d 6d 61 6e 64 2c 20 6e | 6f 20 69 6e 70 75 74 73 |mmand, n|o inputs|
|00000770| 2e 20 20 41 62 62 72 65 | 76 69 61 74 69 6f 6e 3a |. Abbre|viation:|
|00000780| 20 5c 66 33 70 78 5c 66 | 31 0a 58 2e 49 4e 0a 58 | \f3px\f|1.X.IN.X|
|00000790| 54 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 74 65 6c |This com|mand tel|
|000007a0| 6c 73 20 74 68 65 20 64 | 69 73 70 6c 61 79 20 74 |ls the d|isplay t|
|000007b0| 75 72 74 6c 65 20 74 6f | 20 6c 6f 77 65 72 20 69 |urtle to| lower i|
|000007c0| 74 73 20 22 72 65 76 65 | 72 73 69 6e 67 20 70 65 |ts "reve|rsing pe|
|000007d0| 6e 22 3b 0a 58 74 68 65 | 72 65 61 66 74 65 72 2c |n";.Xthe|reafter,|
|000007e0| 20 77 68 65 6e 20 74 68 | 65 20 74 75 72 74 6c 65 | when th|e turtle|
|000007f0| 20 6d 6f 76 65 73 2c 20 | 69 74 20 74 75 72 6e 73 | moves, |it turns|
|00000800| 20 6f 6e 20 61 6e 79 20 | 70 6f 69 6e 74 73 20 77 | on any |points w|
|00000810| 68 69 63 68 20 77 65 72 | 65 0a 58 6f 66 66 2c 20 |hich wer|e.Xoff, |
|00000820| 61 6e 64 20 74 75 72 6e | 73 20 6f 66 66 20 61 6e |and turn|s off an|
|00000830| 79 20 70 6f 69 6e 74 73 | 20 77 68 69 63 68 20 77 |y points| which w|
|00000840| 65 72 65 20 6f 6e 2e 20 | 20 54 68 65 20 63 6f 6d |ere on. | The com|
|00000850| 6d 61 6e 64 73 20 5c 66 | 33 70 65 6e 75 70 5c 66 |mands \f|3penup\f|
|00000860| 31 2c 0a 58 5c 66 33 70 | 65 6e 64 6f 77 6e 5c 66 |1,.X\f3p|endown\f|
|00000870| 31 2c 20 5c 66 33 70 65 | 6e 65 72 61 73 65 5c 66 |1, \f3pe|nerase\f|
|00000880| 31 2c 20 61 6e 64 20 5c | 66 33 70 65 6e 72 65 76 |1, and \|f3penrev|
|00000890| 65 72 73 65 5c 66 31 20 | 61 72 65 20 6d 75 74 75 |erse\f1 |are mutu|
|000008a0| 61 6c 6c 79 0a 58 65 78 | 63 6c 75 73 69 76 65 3b |ally.Xex|clusive;|
|000008b0| 20 77 68 69 63 68 65 76 | 65 72 20 77 61 73 20 6d | whichev|er was m|
|000008c0| 6f 73 74 20 72 65 63 65 | 6e 74 6c 79 20 75 73 65 |ost rece|ntly use|
|000008d0| 64 20 69 73 20 74 68 65 | 20 6f 6e 65 20 77 68 69 |d is the| one whi|
|000008e0| 63 68 20 61 66 66 65 63 | 74 73 20 74 68 65 0a 58 |ch affec|ts the.X|
|000008f0| 74 75 72 74 6c 65 2e 20 | 20 28 4e 6f 74 65 3a 20 |turtle. | (Note: |
|00000900| 20 47 72 61 70 68 69 63 | 73 20 74 65 72 6d 69 6e | Graphic|s termin|
|00000910| 61 6c 73 20 77 68 69 63 | 68 20 63 61 6e 6e 6f 74 |als whic|h cannot|
|00000920| 20 70 65 6e 72 65 76 65 | 72 73 65 20 77 69 6c 6c | penreve|rse will|
|00000930| 20 74 72 65 61 74 0a 58 | 74 68 69 73 20 63 6f 6d | treat.X|this com|
|00000940| 6d 61 6e 64 20 61 73 20 | 5c 66 33 70 65 6e 64 6f |mand as |\f3pendo|
|00000950| 77 6e 5c 66 31 2e 29 0a | 58 2e 4f 55 0a 58 5c 66 |wn\f1.).|X.OU.X\f|
|00000960| 33 70 65 6e 6d 6f 64 65 | 5c 66 31 20 5c 28 65 6d |3penmode|\f1 \(em|
|00000970| 20 4f 70 65 72 61 74 69 | 6f 6e 2c 20 6e 6f 20 69 | Operati|on, no i|
|00000980| 6e 70 75 74 73 2e 0a 58 | 2e 49 4e 0a 58 54 68 69 |nputs..X|.IN.XThi|
|00000990| 73 20 6f 70 65 72 61 74 | 69 6f 6e 20 61 70 70 6c |s operat|ion appl|
|000009a0| 69 65 73 20 74 6f 20 74 | 68 65 20 66 6c 6f 6f 72 |ies to t|he floor|
|000009b0| 20 6f 72 20 74 68 65 20 | 64 69 73 70 6c 61 79 20 | or the |display |
|000009c0| 74 75 72 74 6c 65 2e 20 | 20 49 74 20 6f 75 74 70 |turtle. | It outp|
|000009d0| 75 74 73 20 6f 6e 65 0a | 58 6f 66 20 74 68 65 20 |uts one.|Xof the |
|000009e0| 77 6f 72 64 73 20 5c 66 | 33 70 65 6e 75 70 5c 66 |words \f|3penup\f|
|000009f0| 31 2c 20 5c 66 33 70 65 | 6e 64 6f 77 6e 5c 66 31 |1, \f3pe|ndown\f1|
|00000a00| 2c 20 5c 66 33 70 65 6e | 65 72 61 73 65 5c 66 31 |, \f3pen|erase\f1|
|00000a10| 2c 20 6f 72 0a 58 5c 66 | 33 70 65 6e 72 65 76 65 |, or.X\f|3penreve|
|00000a20| 72 73 65 5c 66 31 2c 20 | 64 65 70 65 6e 64 69 6e |rse\f1, |dependin|
|00000a30| 67 20 6f 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |g on the| current|
|00000a40| 20 73 74 61 74 65 20 6f | 66 20 74 68 65 20 74 75 | state o|f the tu|
|00000a50| 72 74 6c 65 27 73 20 70 | 65 6e 2e 0a 58 2e 4f 55 |rtle's p|en..X.OU|
|00000a60| 0a 58 5c 66 33 6c 61 6d | 70 6f 6e 5c 66 31 20 5c |.X\f3lam|pon\f1 \|
|00000a70| 28 65 6d 20 43 6f 6d 6d | 61 6e 64 2c 20 6e 6f 20 |(em Comm|and, no |
|00000a80| 69 6e 70 75 74 73 2e 20 | 20 41 62 62 72 65 76 69 |inputs. | Abbrevi|
|00000a90| 61 74 69 6f 6e 3a 20 5c | 66 33 6c 6f 6e 5c 66 31 |ation: \|f3lon\f1|
|00000aa0| 0a 58 2e 49 4e 0a 58 54 | 68 69 73 20 63 6f 6d 6d |.X.IN.XT|his comm|
|00000ab0| 61 6e 64 20 61 70 70 6c | 69 65 73 20 6f 6e 6c 79 |and appl|ies only|
|00000ac0| 20 74 6f 20 74 68 65 20 | 66 6c 6f 6f 72 20 74 75 | to the |floor tu|
|00000ad0| 72 74 6c 65 3b 20 69 74 | 20 74 75 72 6e 73 20 6f |rtle; it| turns o|
|00000ae0| 6e 20 74 68 65 0a 58 68 | 65 61 64 6c 61 6d 70 73 |n the.Xh|eadlamps|
|00000af0| 20 6f 6e 20 74 68 65 20 | 66 72 6f 6e 74 20 6f 66 | on the |front of|
|00000b00| 20 74 68 65 20 74 75 72 | 74 6c 65 2e 0a 58 2e 4f | the tur|tle..X.O|
|00000b10| 55 0a 58 5c 66 33 6c 61 | 6d 70 6f 66 66 5c 66 31 |U.X\f3la|mpoff\f1|
|00000b20| 20 5c 28 65 6d 20 43 6f | 6d 6d 61 6e 64 2c 20 6e | \(em Co|mmand, n|
|00000b30| 6f 20 69 6e 70 75 74 73 | 2e 20 20 41 62 62 72 65 |o inputs|. Abbre|
|00000b40| 76 69 61 74 69 6f 6e 3a | 20 5c 66 33 6c 6f 66 66 |viation:| \f3loff|
|00000b50| 5c 66 31 0a 58 2e 49 4e | 0a 58 54 68 69 73 20 63 |\f1.X.IN|.XThis c|
|00000b60| 6f 6d 6d 61 6e 64 20 74 | 75 72 6e 73 20 6f 66 66 |ommand t|urns off|
|00000b70| 20 74 68 65 20 66 6c 6f | 6f 72 20 74 75 72 74 6c | the flo|or turtl|
|00000b80| 65 27 73 20 68 65 61 64 | 6c 61 6d 70 73 2e 0a 58 |e's head|lamps..X|
|00000b90| 2e 4f 55 0a 58 5c 66 33 | 68 69 74 6f 6f 74 5c 66 |.OU.X\f3|hitoot\f|
|00000ba0| 31 20 5c 28 65 6d 20 43 | 6f 6d 6d 61 6e 64 2c 20 |1 \(em C|ommand, |
|00000bb0| 6f 6e 65 20 69 6e 70 75 | 74 2e 20 20 41 62 62 72 |one inpu|t. Abbr|
|00000bc0| 65 76 69 61 74 69 6f 6e | 3a 20 5c 66 33 68 69 74 |eviation|: \f3hit|
|00000bd0| 5c 66 31 0a 58 2e 49 4e | 0a 58 54 68 69 73 20 63 |\f1.X.IN|.XThis c|
|00000be0| 6f 6d 6d 61 6e 64 20 61 | 70 70 6c 69 65 73 20 6f |ommand a|pplies o|
|00000bf0| 6e 6c 79 20 74 6f 20 74 | 68 65 20 66 6c 6f 6f 72 |nly to t|he floor|
|00000c00| 20 74 75 72 74 6c 65 2e | 20 20 49 74 20 73 6f 75 | turtle.| It sou|
|00000c10| 6e 64 73 20 74 68 65 0a | 58 74 75 72 74 6c 65 27 |nds the.|Xturtle'|
|00000c20| 73 20 68 6f 72 6e 20 61 | 74 20 74 68 65 20 68 69 |s horn a|t the hi|
|00000c30| 67 68 65 72 20 6f 66 20 | 69 74 73 20 74 77 6f 20 |gher of |its two |
|00000c40| 70 69 74 63 68 65 73 2e | 20 20 54 68 65 20 69 6e |pitches.| The in|
|00000c50| 70 75 74 20 69 73 0a 58 | 61 20 6e 75 6d 62 65 72 |put is.X|a number|
|00000c60| 20 77 68 69 63 68 20 69 | 6e 64 69 63 61 74 65 73 | which i|ndicates|
|00000c70| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 71 | the num|ber of q|
|00000c80| 75 61 72 74 65 72 2d 73 | 65 63 6f 6e 64 73 20 74 |uarter-s|econds t|
|00000c90| 6f 20 74 6f 6f 74 0a 58 | 74 68 65 20 68 6f 72 6e |o toot.X|the horn|
|00000ca0| 2e 20 20 4e 6f 74 65 3a | 20 6c 61 72 67 65 20 6e |. Note:| large n|
|00000cb0| 75 6d 62 65 72 73 20 61 | 72 65 20 6c 69 6b 65 6c |umbers a|re likel|
|00000cc0| 79 20 74 6f 20 6c 65 61 | 64 20 74 6f 20 76 69 6f |y to lea|d to vio|
|00000cd0| 6c 65 6e 74 0a 58 62 65 | 68 61 76 69 6f 72 20 6f |lent.Xbe|havior o|
|00000ce0| 6e 20 74 68 65 20 70 61 | 72 74 20 6f 66 20 6f 74 |n the pa|rt of ot|
|00000cf0| 68 65 72 20 63 6f 6d 70 | 75 74 65 72 20 75 73 65 |her comp|uter use|
|00000d00| 72 73 2e 0a 58 2e 4f 55 | 0a 58 5c 66 33 6c 6f 74 |rs..X.OU|.X\f3lot|
|00000d10| 6f 6f 74 5c 66 31 20 5c | 28 65 6d 20 43 6f 6d 6d |oot\f1 \|(em Comm|
|00000d20| 61 6e 64 2c 20 6f 6e 65 | 20 69 6e 70 75 74 2e 20 |and, one| input. |
|00000d30| 20 41 62 62 72 65 76 69 | 61 74 69 6f 6e 3a 20 5c | Abbrevi|ation: \|
|00000d40| 66 33 6c 6f 74 5c 66 31 | 0a 58 2e 49 4e 0a 58 54 |f3lot\f1|.X.IN.XT|
|00000d50| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 73 6f 75 6e |his comm|and soun|
|00000d60| 64 73 20 74 68 65 20 66 | 6c 6f 6f 72 20 74 75 72 |ds the f|loor tur|
|00000d70| 74 6c 65 27 73 20 68 6f | 72 6e 20 61 74 20 74 68 |tle's ho|rn at th|
|00000d80| 65 20 6c 6f 77 65 72 20 | 6f 66 0a 58 69 74 73 20 |e lower |of.Xits |
|00000d90| 74 77 6f 20 70 69 74 63 | 68 65 73 2e 20 20 54 68 |two pitc|hes. Th|
|00000da0| 65 20 69 6e 70 75 74 20 | 69 73 20 74 68 65 20 64 |e input |is the d|
|00000db0| 75 72 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 74 |uration |of the t|
|00000dc0| 6f 6f 74 2e 0a 58 2e 4f | 55 0a 58 5c 66 33 66 74 |oot..X.O|U.X\f3ft|
|00000dd0| 6f 75 63 68 5c 66 31 20 | 5c 28 65 6d 20 4f 70 65 |ouch\f1 |\(em Ope|
|00000de0| 72 61 74 69 6f 6e 20 28 | 70 72 65 64 69 63 61 74 |ration (|predicat|
|00000df0| 65 29 2c 20 6e 6f 20 69 | 6e 70 75 74 73 2e 20 20 |e), no i|nputs. |
|00000e00| 41 62 62 72 65 76 69 61 | 74 69 6f 6e 3a 20 5c 66 |Abbrevia|tion: \f|
|00000e10| 33 66 74 6f 5c 66 31 0a | 58 2e 49 4e 0a 58 54 68 |3fto\f1.|X.IN.XTh|
|00000e20| 69 73 20 6f 70 65 72 61 | 74 69 6f 6e 20 63 61 6e |is opera|tion can|
|00000e30| 20 62 65 20 75 73 65 64 | 20 6f 6e 6c 79 20 77 69 | be used| only wi|
|00000e40| 74 68 20 74 68 65 20 66 | 6c 6f 6f 72 20 74 75 72 |th the f|loor tur|
|00000e50| 74 6c 65 2e 20 20 49 74 | 20 68 61 73 20 61 73 20 |tle. It| has as |
|00000e60| 69 74 73 0a 58 6f 75 74 | 70 75 74 20 74 68 65 20 |its.Xout|put the |
|00000e70| 77 6f 72 64 20 5c 66 33 | 74 72 75 65 5c 66 31 20 |word \f3|true\f1 |
|00000e80| 69 66 20 74 68 65 20 66 | 72 6f 6e 74 20 6f 66 20 |if the f|ront of |
|00000e90| 74 68 65 20 74 75 72 74 | 6c 65 20 69 73 20 74 6f |the turt|le is to|
|00000ea0| 75 63 68 69 6e 67 20 61 | 6e 0a 58 6f 62 73 74 61 |uching a|n.Xobsta|
|00000eb0| 63 6c 65 3b 20 6f 74 68 | 65 72 77 69 73 65 20 69 |cle; oth|erwise i|
|00000ec0| 74 20 68 61 73 20 74 68 | 65 20 77 6f 72 64 20 5c |t has th|e word \|
|00000ed0| 66 33 66 61 6c 73 65 5c | 66 31 20 61 73 20 69 74 |f3false\|f1 as it|
|00000ee0| 73 20 6f 75 74 70 75 74 | 2e 0a 58 2e 4f 55 0a 58 |s output|..X.OU.X|
|00000ef0| 5c 66 33 62 74 6f 75 63 | 68 5c 66 31 20 5c 28 65 |\f3btouc|h\f1 \(e|
|00000f00| 6d 20 4f 70 65 72 61 74 | 69 6f 6e 20 28 70 72 65 |m Operat|ion (pre|
|00000f10| 64 69 63 61 74 65 29 2c | 20 6e 6f 20 69 6e 70 75 |dicate),| no inpu|
|00000f20| 74 73 2e 20 20 41 62 62 | 72 65 76 69 61 74 69 6f |ts. Abb|reviatio|
|00000f30| 6e 3a 20 5c 66 33 62 74 | 6f 5c 66 31 0a 58 2e 49 |n: \f3bt|o\f1.X.I|
|00000f40| 4e 0a 58 54 68 69 73 20 | 6f 70 65 72 61 74 69 6f |N.XThis |operatio|
|00000f50| 6e 20 63 61 6e 20 62 65 | 20 75 73 65 64 20 6f 6e |n can be| used on|
|00000f60| 6c 79 20 77 69 74 68 20 | 74 68 65 20 66 6c 6f 6f |ly with |the floo|
|00000f70| 72 20 74 75 72 74 6c 65 | 2e 20 20 49 74 20 68 61 |r turtle|. It ha|
|00000f80| 73 20 61 73 20 69 74 73 | 0a 58 6f 75 74 70 75 74 |s as its|.Xoutput|
|00000f90| 20 74 68 65 20 77 6f 72 | 64 20 5c 66 33 74 72 75 | the wor|d \f3tru|
|00000fa0| 65 5c 66 31 20 69 66 20 | 74 68 65 20 62 61 63 6b |e\f1 if |the back|
|00000fb0| 20 6f 66 20 74 68 65 20 | 74 75 72 74 6c 65 20 69 | of the |turtle i|
|00000fc0| 73 20 74 6f 75 63 68 69 | 6e 67 20 61 6e 0a 58 6f |s touchi|ng an.Xo|
|00000fd0| 62 73 74 61 63 6c 65 3b | 20 6f 74 68 65 72 77 69 |bstacle;| otherwi|
|00000fe0| 73 65 20 69 74 20 68 61 | 73 20 74 68 65 20 77 6f |se it ha|s the wo|
|00000ff0| 72 64 20 5c 66 33 66 61 | 6c 73 65 5c 66 31 20 61 |rd \f3fa|lse\f1 a|
|00001000| 73 20 69 74 73 20 6f 75 | 74 70 75 74 2e 0a 58 2e |s its ou|tput..X.|
|00001010| 4f 55 0a 58 5c 66 33 6c | 74 6f 75 63 68 5c 66 31 |OU.X\f3l|touch\f1|
|00001020| 20 5c 28 65 6d 20 4f 70 | 65 72 61 74 69 6f 6e 20 | \(em Op|eration |
|00001030| 28 70 72 65 64 69 63 61 | 74 65 29 2c 20 6e 6f 20 |(predica|te), no |
|00001040| 69 6e 70 75 74 73 2e 20 | 20 41 62 62 72 65 76 69 |inputs. | Abbrevi|
|00001050| 61 74 69 6f 6e 3a 20 5c | 66 33 6c 74 6f 5c 66 31 |ation: \|f3lto\f1|
|00001060| 0a 58 2e 49 4e 0a 58 54 | 68 69 73 20 6f 70 65 72 |.X.IN.XT|his oper|
|00001070| 61 74 69 6f 6e 20 63 61 | 6e 20 62 65 20 75 73 65 |ation ca|n be use|
|00001080| 64 20 6f 6e 6c 79 20 77 | 69 74 68 20 74 68 65 20 |d only w|ith the |
|00001090| 66 6c 6f 6f 72 20 74 75 | 72 74 6c 65 2e 20 20 49 |floor tu|rtle. I|
|000010a0| 74 20 68 61 73 20 61 73 | 20 69 74 73 0a 58 6f 75 |t has as| its.Xou|
|000010b0| 74 70 75 74 20 74 68 65 | 20 77 6f 72 64 20 5c 66 |tput the| word \f|
|000010c0| 33 74 72 75 65 5c 66 31 | 20 69 66 20 74 68 65 20 |3true\f1| if the |
|000010d0| 6c 65 66 74 20 73 69 64 | 65 20 6f 66 20 74 68 65 |left sid|e of the|
|000010e0| 20 74 75 72 74 6c 65 20 | 69 73 20 74 6f 75 63 68 | turtle |is touch|
|000010f0| 69 6e 67 20 61 6e 0a 58 | 6f 62 73 74 61 63 6c 65 |ing an.X|obstacle|
|00001100| 3b 20 6f 74 68 65 72 77 | 69 73 65 20 69 74 20 68 |; otherw|ise it h|
|00001110| 61 73 20 74 68 65 20 77 | 6f 72 64 20 5c 66 33 66 |as the w|ord \f3f|
|00001120| 61 6c 73 65 5c 66 31 20 | 61 73 20 69 74 73 20 6f |alse\f1 |as its o|
|00001130| 75 74 70 75 74 2e 0a 58 | 2e 4f 55 0a 58 5c 66 33 |utput..X|.OU.X\f3|
|00001140| 72 74 6f 75 63 68 5c 66 | 31 20 5c 28 65 6d 20 4f |rtouch\f|1 \(em O|
|00001150| 70 65 72 61 74 69 6f 6e | 20 28 70 72 65 64 69 63 |peration| (predic|
|00001160| 61 74 65 29 2c 20 6e 6f | 20 69 6e 70 75 74 73 2e |ate), no| inputs.|
|00001170| 20 20 41 62 62 72 65 76 | 69 61 74 69 6f 6e 3a 20 | Abbrev|iation: |
|00001180| 5c 66 33 72 74 6f 5c 66 | 31 0a 58 2e 49 4e 0a 58 |\f3rto\f|1.X.IN.X|
|00001190| 54 68 69 73 20 6f 70 65 | 72 61 74 69 6f 6e 20 63 |This ope|ration c|
|000011a0| 61 6e 20 62 65 20 75 73 | 65 64 20 6f 6e 6c 79 20 |an be us|ed only |
|000011b0| 77 69 74 68 20 74 68 65 | 20 66 6c 6f 6f 72 20 74 |with the| floor t|
|000011c0| 75 72 74 6c 65 2e 20 20 | 49 74 20 68 61 73 20 61 |urtle. |It has a|
|000011d0| 73 20 69 74 73 0a 58 6f | 75 74 70 75 74 20 74 68 |s its.Xo|utput th|
|000011e0| 65 20 77 6f 72 64 20 5c | 66 33 74 72 75 65 5c 66 |e word \|f3true\f|
|000011f0| 31 20 69 66 20 74 68 65 | 20 72 69 67 68 74 20 73 |1 if the| right s|
|00001200| 69 64 65 20 6f 66 20 74 | 68 65 20 74 75 72 74 6c |ide of t|he turtl|
|00001210| 65 20 69 73 20 74 6f 75 | 63 68 69 6e 67 20 61 6e |e is tou|ching an|
|00001220| 0a 58 6f 62 73 74 61 63 | 6c 65 3b 20 6f 74 68 65 |.Xobstac|le; othe|
|00001230| 72 77 69 73 65 20 69 74 | 20 68 61 73 20 74 68 65 |rwise it| has the|
|00001240| 20 77 6f 72 64 20 5c 66 | 33 66 61 6c 73 65 5c 66 | word \f|3false\f|
|00001250| 31 20 61 73 20 69 74 73 | 20 6f 75 74 70 75 74 2e |1 as its| output.|
|00001260| 0a 58 2e 4f 55 0a 58 5c | 66 33 63 6c 65 61 72 73 |.X.OU.X\|f3clears|
|00001270| 63 72 65 65 6e 5c 66 31 | 20 5c 28 65 6d 20 43 6f |creen\f1| \(em Co|
|00001280| 6d 6d 61 6e 64 2c 20 6e | 6f 20 69 6e 70 75 74 73 |mmand, n|o inputs|
|00001290| 2e 20 20 41 62 62 72 65 | 76 69 61 74 69 6f 6e 3a |. Abbre|viation:|
|000012a0| 20 5c 66 33 63 73 5c 66 | 31 0a 58 2e 49 4e 0a 58 | \f3cs\f|1.X.IN.X|
|000012b0| 54 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 61 70 70 |This com|mand app|
|000012c0| 6c 69 65 73 20 6f 6e 6c | 79 20 74 6f 20 74 68 65 |lies onl|y to the|
|000012d0| 20 64 69 73 70 6c 61 79 | 20 74 75 72 74 6c 65 2e | display| turtle.|
|000012e0| 20 20 49 74 20 65 72 61 | 73 65 73 20 65 76 65 72 | It era|ses ever|
|000012f0| 79 74 68 69 6e 67 0a 58 | 6f 6e 20 74 68 65 20 54 |ything.X|on the T|
|00001300| 56 20 73 63 72 65 65 6e | 2c 20 61 6e 64 20 72 65 |V screen|, and re|
|00001310| 73 74 6f 72 65 73 20 74 | 68 65 20 74 75 72 74 6c |stores t|he turtl|
|00001320| 65 20 74 6f 20 69 74 73 | 20 69 6e 69 74 69 61 6c |e to its| initial|
|00001330| 20 70 6f 73 69 74 69 6f | 6e 20 61 6e 64 0a 58 68 | positio|n and.Xh|
|00001340| 65 61 64 69 6e 67 20 28 | 63 65 6e 74 65 72 20 6f |eading (|center o|
|00001350| 66 20 74 68 65 20 73 63 | 72 65 65 6e 2c 20 66 61 |f the sc|reen, fa|
|00001360| 63 69 6e 67 20 74 6f 77 | 61 72 64 20 74 68 65 20 |cing tow|ard the |
|00001370| 74 6f 70 20 65 64 67 65 | 29 2e 0a 58 2e 4f 55 0a |top edge|)..X.OU.|
|00001380| 58 5c 66 33 77 69 70 65 | 63 6c 65 61 6e 5c 66 31 |X\f3wipe|clean\f1|
|00001390| 20 5c 28 65 6d 20 43 6f | 6d 6d 61 6e 64 2c 20 6e | \(em Co|mmand, n|
|000013a0| 6f 20 69 6e 70 75 74 73 | 2e 20 20 41 62 62 72 65 |o inputs|. Abbre|
|000013b0| 76 69 61 74 69 6f 6e 3a | 20 5c 66 33 63 6c 65 61 |viation:| \f3clea|
|000013c0| 6e 5c 66 31 0a 58 2e 49 | 4e 0a 58 54 68 69 73 20 |n\f1.X.I|N.XThis |
|000013d0| 63 6f 6d 6d 61 6e 64 20 | 61 70 70 6c 69 65 73 20 |command |applies |
|000013e0| 6f 6e 6c 79 20 74 6f 20 | 74 68 65 20 64 69 73 70 |only to |the disp|
|000013f0| 6c 61 79 20 74 75 72 74 | 6c 65 2e 20 20 49 74 20 |lay turt|le. It |
|00001400| 65 72 61 73 65 73 20 65 | 76 65 72 79 74 68 69 6e |erases e|verythin|
|00001410| 67 0a 58 6f 6e 20 74 68 | 65 20 54 56 20 73 63 72 |g.Xon th|e TV scr|
|00001420| 65 65 6e 2c 20 62 75 74 | 20 64 6f 65 73 20 6e 6f |een, but| does no|
|00001430| 74 20 63 68 61 6e 67 65 | 20 74 68 65 20 74 75 72 |t change| the tur|
|00001440| 74 6c 65 27 73 20 70 6f | 73 69 74 69 6f 6e 20 6f |tle's po|sition o|
|00001450| 72 20 68 65 61 64 69 6e | 67 2e 0a 58 2e 4f 55 0a |r headin|g..X.OU.|
|00001460| 58 5c 66 33 66 75 6c 6c | 73 63 72 65 65 6e 5c 66 |X\f3full|screen\f|
|00001470| 31 20 5c 28 65 6d 20 43 | 6f 6d 6d 61 6e 64 2c 20 |1 \(em C|ommand, |
|00001480| 6e 6f 20 69 6e 70 75 74 | 73 2e 20 20 41 62 62 72 |no input|s. Abbr|
|00001490| 65 76 69 61 74 69 6f 6e | 3a 20 5c 66 33 66 75 6c |eviation|: \f3ful|
|000014a0| 6c 5c 66 31 0a 58 2e 49 | 4e 0a 58 54 68 69 73 20 |l\f1.X.I|N.XThis |
|000014b0| 63 6f 6d 6d 61 6e 64 20 | 61 70 70 6c 69 65 73 20 |command |applies |
|000014c0| 6f 6e 6c 79 20 74 6f 20 | 74 68 65 20 41 74 61 72 |only to |the Atar|
|000014d0| 69 20 64 69 73 70 6c 61 | 79 20 74 75 72 74 6c 65 |i displa|y turtle|
|000014e0| 2e 20 20 49 74 20 65 6c | 69 6d 69 6e 61 74 65 73 |. It el|iminates|
|000014f0| 20 74 68 65 0a 58 75 73 | 65 20 6f 66 20 74 68 65 | the.Xus|e of the|
|00001500| 20 62 6f 74 74 6f 6d 20 | 66 6f 75 72 20 6c 69 6e | bottom |four lin|
|00001510| 65 73 20 6f 66 20 74 68 | 65 20 73 63 72 65 65 6e |es of th|e screen|
|00001520| 20 74 6f 20 64 69 73 70 | 6c 61 79 20 74 68 65 20 | to disp|lay the |
|00001530| 63 6f 6d 6d 61 6e 64 73 | 0a 58 79 6f 75 20 74 79 |commands|.Xyou ty|
|00001540| 70 65 3b 20 69 6e 73 74 | 65 61 64 2c 20 74 68 65 |pe; inst|ead, the|
|00001550| 20 65 6e 74 69 72 65 20 | 73 63 72 65 65 6e 20 69 | entire |screen i|
|00001560| 73 20 61 76 61 69 6c 61 | 62 6c 65 20 74 6f 20 73 |s availa|ble to s|
|00001570| 68 6f 77 20 74 68 65 0a | 58 70 69 63 74 75 72 65 |how the.|Xpicture|
|00001580| 20 64 72 61 77 6e 20 62 | 79 20 74 68 65 20 74 75 | drawn b|y the tu|
|00001590| 72 74 6c 65 2e 20 20 48 | 6f 77 65 76 65 72 2c 20 |rtle. H|owever, |
|000015a0| 79 6f 75 20 63 61 6e 20 | 6e 6f 20 6c 6f 6e 67 65 |you can |no longe|
|000015b0| 72 20 73 65 65 0a 58 77 | 68 61 74 20 79 6f 75 27 |r see.Xw|hat you'|
|000015c0| 72 65 20 74 79 70 69 6e | 67 2e 20 20 54 68 65 20 |re typin|g. The |
|000015d0| 63 6f 6d 6d 61 6e 64 20 | 6d 61 79 20 62 65 20 75 |command |may be u|
|000015e0| 73 65 64 20 61 66 74 65 | 72 20 74 68 65 20 70 69 |sed afte|r the pi|
|000015f0| 63 74 75 72 65 20 69 73 | 0a 58 61 6c 72 65 61 64 |cture is|.Xalread|
|00001600| 79 20 64 72 61 77 6e 3b | 20 74 68 65 20 70 61 72 |y drawn;| the par|
|00001610| 74 20 22 68 69 64 64 65 | 6e 22 20 62 79 20 74 68 |t "hidde|n" by th|
|00001620| 65 20 74 65 78 74 20 61 | 74 20 74 68 65 20 62 6f |e text a|t the bo|
|00001630| 74 74 6f 6d 20 6f 66 0a | 58 74 68 65 20 73 63 72 |ttom of.|Xthe scr|
|00001640| 65 65 6e 20 77 69 6c 6c | 20 62 65 63 6f 6d 65 20 |een will| become |
|00001650| 76 69 73 69 62 6c 65 2e | 20 20 4f 6e 20 6f 74 68 |visible.| On oth|
|00001660| 65 72 20 64 69 73 70 6c | 61 79 73 2c 20 5c 66 33 |er displ|ays, \f3|
|00001670| 66 75 6c 6c 73 63 72 65 | 65 6e 5c 66 31 20 61 6e |fullscre|en\f1 an|
|00001680| 64 0a 58 5c 66 33 73 70 | 6c 69 74 73 63 72 65 65 |d.X\f3sp|litscree|
|00001690| 6e 5c 66 31 20 61 72 65 | 20 65 71 75 69 76 61 6c |n\f1 are| equival|
|000016a0| 65 6e 74 3b 20 74 68 65 | 79 20 6d 61 6b 65 20 74 |ent; the|y make t|
|000016b0| 68 65 20 65 6e 74 69 72 | 65 20 73 63 72 65 65 6e |he entir|e screen|
|000016c0| 20 61 76 61 69 6c 61 62 | 6c 65 0a 58 66 6f 72 20 | availab|le.Xfor |
|000016d0| 67 72 61 70 68 69 63 73 | 2c 20 61 6e 64 20 74 65 |graphics|, and te|
|000016e0| 78 74 20 61 70 70 65 61 | 72 73 20 6f 6e 20 74 68 |xt appea|rs on th|
|000016f0| 65 20 62 6f 74 74 6f 6d | 20 6c 69 6e 65 20 28 47 |e bottom| line (G|
|00001700| 69 67 69 73 29 20 6f 72 | 20 73 75 70 65 72 69 6d |igis) or| superim|
|00001710| 70 6f 73 65 64 0a 58 28 | 41 44 4d 73 29 2c 20 6f |posed.X(|ADMs), o|
|00001720| 72 20 73 6f 6d 65 77 68 | 65 72 65 2e 0a 58 2e 4f |r somewh|ere..X.O|
|00001730| 55 0a 58 5c 66 33 73 70 | 6c 69 74 73 63 72 65 65 |U.X\f3sp|litscree|
|00001740| 6e 5c 66 31 20 5c 28 65 | 6d 20 43 6f 6d 6d 61 6e |n\f1 \(e|m Comman|
|00001750| 64 2c 20 6e 6f 20 69 6e | 70 75 74 73 2e 20 20 41 |d, no in|puts. A|
|00001760| 62 62 72 65 76 69 61 74 | 69 6f 6e 3a 20 5c 66 33 |bbreviat|ion: \f3|
|00001770| 73 70 6c 69 74 5c 66 31 | 0a 58 2e 49 4e 0a 58 54 |split\f1|.X.IN.XT|
|00001780| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 61 70 70 6c |his comm|and appl|
|00001790| 69 65 73 20 6f 6e 6c 79 | 20 74 6f 20 74 68 65 20 |ies only| to the |
|000017a0| 41 74 61 72 69 20 64 69 | 73 70 6c 61 79 20 74 75 |Atari di|splay tu|
|000017b0| 72 74 6c 65 2e 20 20 49 | 74 20 72 65 73 74 6f 72 |rtle. I|t restor|
|000017c0| 65 73 20 74 68 65 0a 58 | 6e 6f 72 6d 61 6c 20 74 |es the.X|normal t|
|000017d0| 65 78 74 20 64 69 73 70 | 6c 61 79 20 61 74 20 74 |ext disp|lay at t|
|000017e0| 68 65 20 62 6f 74 74 6f | 6d 20 6f 66 20 74 68 65 |he botto|m of the|
|000017f0| 20 73 63 72 65 65 6e 2c | 20 75 6e 64 6f 69 6e 67 | screen,| undoing|
|00001800| 20 74 68 65 0a 58 65 66 | 66 65 63 74 20 6f 66 20 | the.Xef|fect of |
|00001810| 74 68 65 20 5c 66 33 66 | 75 6c 6c 5c 66 31 20 63 |the \f3f|ull\f1 c|
|00001820| 6f 6d 6d 61 6e 64 2e 20 | 20 4f 6e 20 6f 74 68 65 |ommand. | On othe|
|00001830| 72 20 64 69 73 70 6c 61 | 79 73 2c 20 5c 66 33 66 |r displa|ys, \f3f|
|00001840| 75 6c 6c 73 63 72 65 65 | 6e 5c 66 31 20 61 6e 64 |ullscree|n\f1 and|
|00001850| 0a 58 5c 66 33 73 70 6c | 69 74 73 63 72 65 65 6e |.X\f3spl|itscreen|
|00001860| 5c 66 31 20 61 72 65 20 | 65 71 75 69 76 61 6c 65 |\f1 are |equivale|
|00001870| 6e 74 3b 20 74 68 65 79 | 20 6d 61 6b 65 20 74 68 |nt; they| make th|
|00001880| 65 20 65 6e 74 69 72 65 | 20 73 63 72 65 65 6e 20 |e entire| screen |
|00001890| 61 76 61 69 6c 61 62 6c | 65 0a 58 66 6f 72 20 67 |availabl|e.Xfor g|
|000018a0| 72 61 70 68 69 63 73 2c | 20 77 69 74 68 20 74 65 |raphics,| with te|
|000018b0| 78 74 20 73 75 70 65 72 | 69 6d 70 6f 73 65 64 20 |xt super|imposed |
|000018c0| 69 6e 20 61 20 64 69 73 | 70 6c 61 79 2d 64 65 70 |in a dis|play-dep|
|000018d0| 65 6e 64 65 6e 74 20 61 | 72 65 61 2e 0a 58 2e 4f |endent a|rea..X.O|
|000018e0| 55 0a 58 5c 66 33 74 65 | 78 74 73 63 72 65 65 6e |U.X\f3te|xtscreen|
|000018f0| 5c 66 31 20 5c 28 65 6d | 20 43 6f 6d 6d 61 6e 64 |\f1 \(em| Command|
|00001900| 2c 20 6e 6f 20 69 6e 70 | 75 74 73 2e 20 20 41 62 |, no inp|uts. Ab|
|00001910| 62 72 65 76 69 61 74 69 | 6f 6e 3a 20 5c 66 33 74 |breviati|on: \f3t|
|00001920| 65 78 74 5c 66 31 0a 58 | 2e 49 4e 0a 58 54 68 69 |ext\f1.X|.IN.XThi|
|00001930| 73 20 63 6f 6d 6d 61 6e | 64 20 61 70 70 6c 69 65 |s comman|d applie|
|00001940| 73 20 6f 6e 6c 79 20 74 | 6f 20 74 68 65 20 64 69 |s only t|o the di|
|00001950| 73 70 6c 61 79 20 74 75 | 72 74 6c 65 2e 20 20 49 |splay tu|rtle. I|
|00001960| 74 20 74 65 6d 70 6f 72 | 61 72 69 6c 79 0a 58 72 |t tempor|arily.Xr|
|00001970| 65 6d 6f 76 65 73 20 74 | 68 65 20 74 75 72 74 6c |emoves t|he turtl|
|00001980| 65 20 64 69 73 70 6c 61 | 79 20 66 72 6f 6d 20 74 |e displa|y from t|
|00001990| 68 65 20 73 63 72 65 65 | 6e 2c 20 6d 61 6b 69 6e |he scree|n, makin|
|000019a0| 67 20 74 68 65 20 65 6e | 74 69 72 65 0a 58 73 63 |g the en|tire.Xsc|
|000019b0| 72 65 65 6e 20 61 76 61 | 69 6c 61 62 6c 65 20 66 |reen ava|ilable f|
|000019c0| 6f 72 20 74 65 78 74 20 | 64 69 73 70 6c 61 79 2e |or text |display.|
|000019d0| 20 20 54 68 65 20 63 6f | 6d 6d 61 6e 64 73 20 5c | The co|mmands \|
|000019e0| 66 33 66 75 6c 6c 73 63 | 72 65 65 6e 5c 66 31 20 |f3fullsc|reen\f1 |
|000019f0| 61 6e 64 0a 58 5c 66 33 | 73 70 6c 69 74 73 63 72 |and.X\f3|splitscr|
|00001a00| 65 65 6e 5c 66 31 20 77 | 69 6c 6c 20 72 65 73 74 |een\f1 w|ill rest|
|00001a10| 6f 72 65 20 74 68 65 20 | 67 72 61 70 68 69 63 73 |ore the |graphics|
|00001a20| 20 64 69 73 70 6c 61 79 | 2e 20 20 4e 6f 74 65 3a | display|. Note:|
|00001a30| 20 20 4f 6e 20 74 68 65 | 20 41 74 61 72 69 0a 58 | On the| Atari.X|
|00001a40| 64 69 73 70 6c 61 79 2c | 20 74 68 65 20 70 69 63 |display,| the pic|
|00001a50| 74 75 72 65 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |ture on |the scre|
|00001a60| 65 6e 20 69 73 20 72 65 | 6d 65 6d 62 65 72 65 64 |en is re|membered|
|00001a70| 2c 20 73 6f 20 74 68 61 | 74 20 77 68 65 6e 20 79 |, so tha|t when y|
|00001a80| 6f 75 20 72 65 74 75 72 | 6e 0a 58 74 6f 20 5c 66 |ou retur|n.Xto \f|
|00001a90| 33 66 75 6c 6c 73 63 72 | 65 65 6e 5c 66 31 20 6f |3fullscr|een\f1 o|
|00001aa0| 72 20 5c 66 33 73 70 6c | 69 74 73 63 72 65 65 6e |r \f3spl|itscreen|
|00001ab0| 5c 66 31 20 6d 6f 64 65 | 2c 20 74 68 65 20 70 69 |\f1 mode|, the pi|
|00001ac0| 63 74 75 72 65 20 72 65 | 74 75 72 6e 73 20 74 6f |cture re|turns to|
|00001ad0| 20 74 68 65 0a 58 73 63 | 72 65 65 6e 2e 20 20 4f | the.Xsc|reen. O|
|00001ae0| 6e 20 6f 74 68 65 72 20 | 64 69 73 70 6c 61 79 73 |n other |displays|
|00001af0| 2c 20 74 68 65 20 70 69 | 63 74 75 72 65 20 69 73 |, the pi|cture is|
|00001b00| 20 66 6f 72 67 6f 74 74 | 65 6e 2c 20 61 6e 64 20 | forgott|en, and |
|00001b10| 79 6f 75 20 72 65 74 75 | 72 6e 20 74 6f 0a 58 61 |you retu|rn to.Xa|
|00001b20| 6e 20 65 6d 70 74 79 20 | 67 72 61 70 68 69 63 73 |n empty |graphics|
|00001b30| 20 73 63 72 65 65 6e 2e | 0a 58 2e 4f 55 0a 58 5c | screen.|.X.OU.X\|
|00001b40| 66 33 68 69 64 65 74 75 | 72 74 6c 65 5c 66 31 20 |f3hidetu|rtle\f1 |
|00001b50| 5c 28 65 6d 20 43 6f 6d | 6d 61 6e 64 2c 20 6e 6f |\(em Com|mand, no|
|00001b60| 20 69 6e 70 75 74 73 2e | 20 20 41 62 62 72 65 76 | inputs.| Abbrev|
|00001b70| 69 61 74 69 6f 6e 3a 20 | 5c 66 33 68 74 5c 66 31 |iation: |\f3ht\f1|
|00001b80| 0a 58 2e 49 4e 0a 58 54 | 68 69 73 20 63 6f 6d 6d |.X.IN.XT|his comm|
|00001b90| 61 6e 64 20 61 70 70 6c | 69 65 73 20 6f 6e 6c 79 |and appl|ies only|
|00001ba0| 20 74 6f 20 74 68 65 20 | 64 69 73 70 6c 61 79 20 | to the |display |
|00001bb0| 74 75 72 74 6c 65 2e 20 | 20 49 74 20 65 72 61 73 |turtle. | It eras|
|00001bc0| 65 73 20 74 68 65 0a 58 | 64 69 73 70 6c 61 79 20 |es the.X|display |
|00001bd0| 6f 66 20 74 68 65 20 74 | 75 72 74 6c 65 20 69 74 |of the t|urtle it|
|00001be0| 73 65 6c 66 20 66 72 6f | 6d 20 74 68 65 20 73 63 |self fro|m the sc|
|00001bf0| 72 65 65 6e 2c 20 73 6f | 20 74 68 61 74 20 6f 6e |reen, so| that on|
|00001c00| 6c 79 20 74 68 65 0a 58 | 6c 69 6e 65 73 20 64 72 |ly the.X|lines dr|
|00001c10| 61 77 6e 20 77 68 65 6e | 20 74 68 65 20 74 75 72 |awn when| the tur|
|00001c20| 74 6c 65 20 6d 6f 76 65 | 73 20 61 72 65 20 76 69 |tle move|s are vi|
|00001c30| 73 69 62 6c 65 2e 20 20 | 54 68 65 20 64 69 73 70 |sible. |The disp|
|00001c40| 6c 61 79 20 69 73 0a 58 | 66 61 73 74 65 72 20 77 |lay is.X|faster w|
|00001c50| 68 65 6e 20 74 68 65 20 | 74 75 72 74 6c 65 20 69 |hen the |turtle i|
|00001c60| 73 20 68 69 64 64 65 6e | 20 28 6f 6e 6c 79 20 73 |s hidden| (only s|
|00001c70| 6c 69 67 68 74 6c 79 20 | 66 61 73 74 65 72 20 6f |lightly |faster o|
|00001c80| 6e 20 74 68 65 20 41 74 | 61 72 69 2c 0a 58 62 75 |n the At|ari,.Xbu|
|00001c90| 74 20 6d 75 63 68 20 66 | 61 73 74 65 72 20 6f 6e |t much f|aster on|
|00001ca0| 20 6f 74 68 65 72 20 74 | 65 72 6d 69 6e 61 6c 73 | other t|erminals|
|00001cb0| 29 2e 20 20 41 6c 73 6f | 2c 20 6f 6e 63 65 20 61 |). Also|, once a|
|00001cc0| 20 67 72 61 70 68 69 63 | 73 0a 58 70 72 6f 67 72 | graphic|s.Xprogr|
|00001cd0| 61 6d 20 69 73 20 64 65 | 62 75 67 67 65 64 2c 20 |am is de|bugged, |
|00001ce0| 69 74 20 6d 61 79 20 62 | 65 20 70 72 65 74 74 69 |it may b|e pretti|
|00001cf0| 65 72 20 74 6f 20 77 61 | 74 63 68 20 77 69 74 68 |er to wa|tch with|
|00001d00| 6f 75 74 20 74 68 65 0a | 58 74 75 72 74 6c 65 20 |out the.|Xturtle |
|00001d10| 76 69 73 69 62 6c 65 2e | 20 20 28 4e 6f 74 65 3a |visible.| (Note:|
|00001d20| 20 20 4f 6e 20 74 68 65 | 20 54 65 6b 74 72 6f 6e | On the| Tektron|
|00001d30| 69 78 20 64 69 73 70 6c | 61 79 2c 20 74 68 65 20 |ix displ|ay, the |
|00001d40| 74 75 72 74 6c 65 20 69 | 73 0a 58 6e 65 76 65 72 |turtle i|s.Xnever|
|00001d50| 20 76 69 73 69 62 6c 65 | 2c 20 62 65 63 61 75 73 | visible|, becaus|
|00001d60| 65 20 74 68 65 20 74 65 | 72 6d 69 6e 61 6c 20 63 |e the te|rminal c|
|00001d70| 61 6e 6e 6f 74 20 65 72 | 61 73 65 20 73 65 6c 65 |annot er|ase sele|
|00001d80| 63 74 69 76 65 6c 79 2e | 29 0a 58 2e 4f 55 0a 58 |ctively.|).X.OU.X|
|00001d90| 5c 66 33 73 68 6f 77 74 | 75 72 74 6c 65 5c 66 31 |\f3showt|urtle\f1|
|00001da0| 20 5c 28 65 6d 20 43 6f | 6d 6d 61 6e 64 2c 20 6e | \(em Co|mmand, n|
|00001db0| 6f 20 69 6e 70 75 74 73 | 2e 20 20 41 62 62 72 65 |o inputs|. Abbre|
|00001dc0| 76 69 61 74 69 6f 6e 3a | 20 5c 66 33 73 74 5c 66 |viation:| \f3st\f|
|00001dd0| 31 0a 58 2e 49 4e 0a 58 | 54 68 69 73 20 63 6f 6d |1.X.IN.X|This com|
|00001de0| 6d 61 6e 64 20 61 70 70 | 6c 69 65 73 20 6f 6e 6c |mand app|lies onl|
|00001df0| 79 20 74 6f 20 74 68 65 | 20 64 69 73 70 6c 61 79 |y to the| display|
|00001e00| 20 74 75 72 74 6c 65 2e | 20 20 49 74 20 72 65 73 | turtle.| It res|
|00001e10| 74 6f 72 65 73 0a 58 74 | 68 65 20 64 69 73 70 6c |tores.Xt|he displ|
|00001e20| 61 79 20 6f 66 20 74 68 | 65 20 74 75 72 74 6c 65 |ay of th|e turtle|
|00001e30| 2c 20 61 66 74 65 72 20 | 74 68 65 20 5c 66 33 68 |, after |the \f3h|
|00001e40| 69 64 65 74 75 72 74 6c | 65 5c 66 31 20 63 6f 6d |ideturtl|e\f1 com|
|00001e50| 6d 61 6e 64 0a 58 68 61 | 73 20 62 65 65 6e 20 75 |mand.Xha|s been u|
|00001e60| 73 65 64 2e 20 20 28 4e | 6f 74 65 3a 20 20 4f 6e |sed. (N|ote: On|
|00001e70| 20 74 68 65 20 54 65 6b | 74 72 6f 6e 69 78 20 64 | the Tek|tronix d|
|00001e80| 69 73 70 6c 61 79 2c 20 | 74 68 65 20 74 75 72 74 |isplay, |the turt|
|00001e90| 6c 65 20 69 73 0a 58 6e | 65 76 65 72 20 76 69 73 |le is.Xn|ever vis|
|00001ea0| 69 62 6c 65 2e 29 0a 58 | 2e 4f 55 0a 58 5c 66 33 |ible.).X|.OU.X\f3|
|00001eb0| 73 68 6f 77 6e 70 5c 66 | 31 20 5c 28 65 6d 20 4f |shownp\f|1 \(em O|
|00001ec0| 70 65 72 61 74 69 6f 6e | 20 28 70 72 65 64 69 63 |peration| (predic|
|00001ed0| 61 74 65 29 2c 20 6e 6f | 20 69 6e 70 75 74 73 2e |ate), no| inputs.|
|00001ee0| 0a 58 2e 49 4e 0a 58 54 | 68 69 73 20 70 72 65 64 |.X.IN.XT|his pred|
|00001ef0| 69 63 61 74 65 20 61 70 | 70 6c 69 65 73 20 6f 6e |icate ap|plies on|
|00001f00| 6c 79 20 74 6f 20 74 68 | 65 20 64 69 73 70 6c 61 |ly to th|e displa|
|00001f10| 79 20 74 75 72 74 6c 65 | 2e 20 20 49 74 20 6f 75 |y turtle|. It ou|
|00001f20| 74 70 75 74 73 20 74 68 | 65 20 77 6f 72 64 0a 58 |tputs th|e word.X|
|00001f30| 5c 66 33 74 72 75 65 5c | 66 31 20 69 66 20 74 68 |\f3true\|f1 if th|
|00001f40| 65 20 74 75 72 74 6c 65 | 20 69 73 20 76 69 73 69 |e turtle| is visi|
|00001f50| 62 6c 65 20 6f 6e 20 74 | 68 65 20 54 56 20 73 63 |ble on t|he TV sc|
|00001f60| 72 65 65 6e 2c 20 5c 66 | 33 66 61 6c 73 65 5c 66 |reen, \f|3false\f|
|00001f70| 31 20 6f 74 68 65 72 77 | 69 73 65 2e 0a 58 2e 4f |1 otherw|ise..X.O|
|00001f80| 55 0a 58 5c 66 33 70 65 | 6e 63 6f 6c 6f 72 5c 66 |U.X\f3pe|ncolor\f|
|00001f90| 31 20 5c 28 65 6d 20 43 | 6f 6d 6d 61 6e 64 2c 20 |1 \(em C|ommand, |
|00001fa0| 6f 6e 65 20 69 6e 70 75 | 74 2e 20 20 41 62 62 72 |one inpu|t. Abbr|
|00001fb0| 65 76 69 61 74 69 6f 6e | 3a 20 5c 66 33 70 65 6e |eviation|: \f3pen|
|00001fc0| 63 5c 66 31 0a 58 2e 49 | 4e 0a 58 54 68 69 73 20 |c\f1.X.I|N.XThis |
|00001fd0| 63 6f 6d 6d 61 6e 64 20 | 61 70 70 6c 69 65 73 20 |command |applies |
|00001fe0| 6f 6e 6c 79 20 74 6f 20 | 74 68 65 20 64 69 73 70 |only to |the disp|
|00001ff0| 6c 61 79 20 74 75 72 74 | 6c 65 2e 20 20 49 74 73 |lay turt|le. Its|
|00002000| 20 65 66 66 65 63 74 20 | 69 73 20 64 69 66 66 65 | effect |is diffe|
|00002010| 72 65 6e 74 0a 58 64 65 | 70 65 6e 64 69 6e 67 20 |rent.Xde|pending |
|00002020| 6f 6e 20 68 6f 77 20 65 | 61 63 68 20 74 79 70 65 |on how e|ach type|
|00002030| 20 6f 66 20 74 65 72 6d | 69 6e 61 6c 20 73 75 70 | of term|inal sup|
|00002040| 70 6f 72 74 73 20 63 6f | 6c 6f 72 2e 20 20 46 6f |ports co|lor. Fo|
|00002050| 72 20 74 68 65 20 41 74 | 61 72 69 2c 20 74 68 65 |r the At|ari, the|
|00002060| 0a 58 69 6e 70 75 74 20 | 6d 75 73 74 20 62 65 0a |.Xinput |must be.|
|00002070| 58 61 6e 20 69 6e 74 65 | 67 65 72 20 62 65 74 77 |Xan inte|ger betw|
|00002080| 65 65 6e 20 30 20 61 6e | 64 20 36 2e 20 20 41 6e |een 0 an|d 6. An|
|00002090| 20 69 6e 70 75 74 20 6f | 66 20 30 20 65 6e 74 65 | input o|f 0 ente|
|000020a0| 72 73 20 62 6c 61 63 6b | 2d 61 6e 64 2d 77 68 69 |rs black|-and-whi|
|000020b0| 74 65 0a 58 64 69 73 70 | 6c 61 79 20 6d 6f 64 65 |te.Xdisp|lay mode|
|000020c0| 20 28 77 68 69 63 68 20 | 69 73 20 74 68 65 20 74 | (which |is the t|
|000020d0| 75 72 74 6c 65 27 73 20 | 69 6e 69 74 69 61 6c 20 |urtle's |initial |
|000020e0| 6d 6f 64 65 29 2c 20 69 | 6e 20 77 68 69 63 68 20 |mode), i|n which |
|000020f0| 6c 69 6e 65 73 0a 58 61 | 72 65 20 61 73 20 74 68 |lines.Xa|re as th|
|00002100| 69 6e 20 61 73 20 70 6f | 73 73 69 62 6c 65 20 62 |in as po|ssible b|
|00002110| 75 74 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 63 |ut there| is no c|
|00002120| 6f 6e 74 72 6f 6c 20 6f | 66 20 63 6f 6c 6f 72 2e |ontrol o|f color.|
|00002130| 20 20 41 6e 79 20 6f 74 | 68 65 72 0a 58 69 6e 70 | Any ot|her.Xinp|
|00002140| 75 74 20 73 65 6c 65 63 | 74 73 20 63 6f 6c 6f 72 |ut selec|ts color|
|00002150| 20 6d 6f 64 65 2c 20 69 | 6e 20 77 68 69 63 68 20 | mode, i|n which |
|00002160| 6c 69 6e 65 73 20 61 72 | 65 20 74 77 69 63 65 20 |lines ar|e twice |
|00002170| 61 73 20 74 68 69 63 6b | 2c 20 73 6f 20 74 68 65 |as thick|, so the|
|00002180| 0a 58 65 66 66 65 63 74 | 69 76 65 20 73 69 7a 65 |.Xeffect|ive size|
|00002190| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 20 69 | of the |screen i|
|000021a0| 73 20 73 6d 61 6c 6c 65 | 72 2c 20 62 75 74 20 63 |s smalle|r, but c|
|000021b0| 6f 6c 6f 72 73 20 63 61 | 6e 20 62 65 20 75 73 65 |olors ca|n be use|
|000021c0| 64 2e 20 20 54 68 65 72 | 65 0a 58 61 72 65 2c 20 |d. Ther|e.Xare, |
|000021d0| 69 6e 20 63 6f 6c 6f 72 | 20 6d 6f 64 65 2c 20 74 |in color| mode, t|
|000021e0| 68 72 65 65 20 70 6f 73 | 73 69 62 6c 65 20 70 65 |hree pos|sible pe|
|000021f0| 6e 20 63 6f 6c 6f 72 73 | 2c 20 6e 75 6d 62 65 72 |n colors|, number|
|00002200| 65 64 20 31 20 74 6f 20 | 33 2e 20 20 54 68 65 72 |ed 1 to |3. Ther|
|00002210| 65 0a 58 61 72 65 20 32 | 35 36 20 70 6f 73 73 69 |e.Xare 2|56 possi|
|00002220| 62 6c 65 20 63 6f 6c 6f | 72 73 2c 20 62 75 74 20 |ble colo|rs, but |
|00002230| 6f 6e 6c 79 20 74 68 72 | 65 65 20 63 61 6e 20 62 |only thr|ee can b|
|00002240| 65 20 6f 6e 20 74 68 65 | 20 73 63 72 65 65 6e 20 |e on the| screen |
|00002250| 61 74 20 61 20 74 69 6d | 65 3b 0a 58 74 68 65 20 |at a tim|e;.Xthe |
|00002260| 5c 66 33 73 65 74 63 6f | 6c 6f 72 5c 66 31 20 63 |\f3setco|lor\f1 c|
|00002270| 6f 6d 6d 61 6e 64 20 69 | 73 20 75 73 65 64 20 74 |ommand i|s used t|
|00002280| 6f 20 64 65 63 69 64 65 | 20 77 68 69 63 68 20 70 |o decide| which p|
|00002290| 65 6e 20 64 72 61 77 73 | 20 69 6e 20 77 68 69 63 |en draws| in whic|
|000022a0| 68 0a 58 61 63 74 75 61 | 6c 20 63 6f 6c 6f 72 2e |h.Xactua|l color.|
|000022b0| 20 20 49 66 20 74 68 65 | 20 69 6e 70 75 74 20 69 | If the| input i|
|000022c0| 73 20 34 2c 20 35 2c 20 | 6f 72 20 36 2c 20 74 68 |s 4, 5, |or 6, th|
|000022d0| 65 20 63 6f 6c 6f 72 20 | 69 73 20 74 68 61 74 20 |e color |is that |
|000022e0| 6f 66 20 70 65 6e 0a 58 | 31 2c 20 32 2c 20 6f 72 |of pen.X|1, 2, or|
|000022f0| 20 33 2c 20 72 65 73 70 | 65 63 74 69 76 65 6c 79 | 3, resp|ectively|
|00002300| 2c 20 62 75 74 20 6c 69 | 6e 65 73 20 61 72 65 20 |, but li|nes are |
|00002310| 64 72 61 77 6e 20 69 6e | 20 22 66 69 6c 6c 20 6d |drawn in| "fill m|
|00002320| 6f 64 65 22 3a 20 66 6f | 72 20 65 61 63 68 0a 58 |ode": fo|r each.X|
|00002330| 70 6f 69 6e 74 20 69 6e | 6b 65 64 2c 20 61 6c 6c |point in|ked, all|
|00002340| 20 70 6f 69 6e 74 73 20 | 74 6f 20 69 74 73 20 72 | points |to its r|
|00002350| 69 67 68 74 20 61 72 65 | 20 61 6c 73 6f 20 69 6e |ight are| also in|
|00002360| 6b 65 64 20 75 6e 74 69 | 6c 20 61 20 70 6f 69 6e |ked unti|l a poin|
|00002370| 74 20 69 73 0a 58 72 65 | 61 63 68 65 64 20 77 68 |t is.Xre|ached wh|
|00002380| 69 63 68 20 77 61 73 20 | 61 6c 72 65 61 64 79 20 |ich was |already |
|00002390| 69 6e 6b 65 64 2e 20 20 | 4f 6e 20 74 68 65 20 47 |inked. |On the G|
|000023a0| 69 67 69 2c 20 74 68 65 | 72 65 20 69 73 20 6f 6e |igi, the|re is on|
|000023b0| 6c 79 20 6f 6e 65 20 6d | 6f 64 65 2c 20 61 6e 64 |ly one m|ode, and|
|000023c0| 0a 58 74 68 65 72 65 20 | 69 73 20 6e 6f 20 6c 6f |.Xthere |is no lo|
|000023d0| 73 73 20 6f 66 20 72 65 | 73 6f 6c 75 74 69 6f 6e |ss of re|solution|
|000023e0| 20 69 6e 20 75 73 69 6e | 67 20 63 6f 6c 6f 72 2e | in usin|g color.|
|000023f0| 20 20 54 68 65 20 69 6e | 70 75 74 20 6d 75 73 74 | The in|put must|
|00002400| 20 62 65 20 62 65 74 77 | 65 65 6e 0a 58 30 20 61 | be betw|een.X0 a|
|00002410| 6e 64 20 37 3b 20 30 20 | 6d 65 61 6e 73 20 62 6c |nd 7; 0 |means bl|
|00002420| 61 63 6b 2c 20 37 20 6d | 65 61 6e 73 20 77 68 69 |ack, 7 m|eans whi|
|00002430| 74 65 2e 20 20 54 68 65 | 20 41 44 4d 2c 20 54 65 |te. The| ADM, Te|
|00002440| 6b 74 72 6f 6e 69 78 2c | 20 61 6e 64 20 53 75 6e |ktronix,| and Sun|
|00002450| 20 64 69 73 70 6c 61 79 | 73 0a 58 64 6f 20 6e 6f | display|s.Xdo no|
|00002460| 74 20 68 61 76 65 20 6d | 75 6c 74 69 2d 63 6f 6c |t have m|ulti-col|
|00002470| 6f 72 20 64 72 61 77 69 | 6e 67 2e 0a 58 2e 4f 55 |or drawi|ng..X.OU|
|00002480| 0a 58 5c 66 33 73 65 74 | 63 6f 6c 6f 72 5c 66 31 |.X\f3set|color\f1|
|00002490| 20 5c 28 65 6d 20 43 6f | 6d 6d 61 6e 64 2c 20 74 | \(em Co|mmand, t|
|000024a0| 77 6f 20 69 6e 70 75 74 | 73 2e 20 20 41 62 62 72 |wo input|s. Abbr|
|000024b0| 65 76 69 61 74 69 6f 6e | 3a 20 5c 66 33 73 65 74 |eviation|: \f3set|
|000024c0| 63 5c 66 31 0a 58 2e 49 | 4e 0a 58 54 68 69 73 20 |c\f1.X.I|N.XThis |
|000024d0| 63 6f 6d 6d 61 6e 64 20 | 61 70 70 6c 69 65 73 20 |command |applies |
|000024e0| 6f 6e 6c 79 20 74 6f 20 | 74 68 65 20 41 74 61 72 |only to |the Atar|
|000024f0| 69 20 64 69 73 70 6c 61 | 79 20 74 75 72 74 6c 65 |i displa|y turtle|
|00002500| 2e 20 20 54 68 65 20 66 | 69 72 73 74 20 69 6e 70 |. The f|irst inp|
|00002510| 75 74 0a 58 6d 75 73 74 | 20 62 65 20 61 6e 20 69 |ut.Xmust| be an i|
|00002520| 6e 74 65 67 65 72 20 62 | 65 74 77 65 65 6e 20 30 |nteger b|etween 0|
|00002530| 20 61 6e 64 20 33 2e 20 | 20 49 66 20 74 68 65 20 | and 3. | If the |
|00002540| 69 6e 70 75 74 20 69 73 | 20 6e 6f 6e 7a 65 72 6f |input is| nonzero|
|00002550| 2c 20 74 68 65 0a 58 73 | 65 63 6f 6e 64 20 69 6e |, the.Xs|econd in|
|00002560| 70 75 74 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |put spec|ifies th|
|00002570| 65 20 63 6f 6c 6f 72 20 | 66 6f 72 20 74 68 65 20 |e color |for the |
|00002580| 70 65 6e 20 73 65 6c 65 | 63 74 65 64 20 62 79 20 |pen sele|cted by |
|00002590| 74 68 65 20 66 69 72 73 | 74 0a 58 69 6e 70 75 74 |the firs|t.Xinput|
|000025a0| 2e 20 20 49 66 20 74 68 | 65 20 66 69 72 73 74 20 |. If th|e first |
|000025b0| 69 6e 70 75 74 20 69 73 | 20 7a 65 72 6f 2c 20 74 |input is| zero, t|
|000025c0| 68 65 20 73 65 63 6f 6e | 64 20 69 6e 70 75 74 20 |he secon|d input |
|000025d0| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 0a 58 62 |specifie|s the.Xb|
|000025e0| 61 63 6b 67 72 6f 75 6e | 64 20 63 6f 6c 6f 72 20 |ackgroun|d color |
|000025f0| 66 6f 72 20 74 68 65 20 | 63 6f 6c 6f 72 20 67 72 |for the |color gr|
|00002600| 61 70 68 69 63 73 20 64 | 69 73 70 6c 61 79 2e 20 |aphics d|isplay. |
|00002610| 20 54 68 65 20 73 65 63 | 6f 6e 64 20 69 6e 70 75 | The sec|ond inpu|
|00002620| 74 0a 58 69 73 20 65 69 | 74 68 65 72 20 61 6e 20 |t.Xis ei|ther an |
|00002630| 69 6e 74 65 67 65 72 20 | 62 65 74 77 65 65 6e 20 |integer |between |
|00002640| 30 20 61 6e 64 20 31 35 | 2c 20 77 68 69 63 68 20 |0 and 15|, which |
|00002650| 69 73 20 61 20 63 6f 6c | 6f 72 20 6e 75 6d 62 65 |is a col|or numbe|
|00002660| 72 2c 20 6f 72 0a 58 61 | 20 6c 69 73 74 20 6f 66 |r, or.Xa| list of|
|00002670| 20 74 77 6f 20 69 6e 74 | 65 67 65 72 73 2c 20 69 | two int|egers, i|
|00002680| 6e 20 77 68 69 63 68 20 | 63 61 73 65 20 74 68 65 |n which |case the|
|00002690| 20 66 69 72 73 74 20 69 | 73 20 61 20 63 6f 6c 6f | first i|s a colo|
|000026a0| 72 20 6e 75 6d 62 65 72 | 0a 58 61 6e 64 20 74 68 |r number|.Xand th|
|000026b0| 65 20 73 65 63 6f 6e 64 | 20 69 73 20 61 6e 20 69 |e second| is an i|
|000026c0| 6e 74 65 6e 73 69 74 79 | 20 6e 75 6d 62 65 72 2c |ntensity| number,|
|000026d0| 20 61 6e 20 69 6e 74 65 | 67 65 72 20 62 65 74 77 | an inte|ger betw|
|000026e0| 65 65 6e 20 30 20 61 6e | 64 20 37 2e 0a 58 2e 4f |een 0 an|d 7..X.O|
|000026f0| 55 0a 58 5c 66 33 73 65 | 74 78 79 5c 66 31 20 5c |U.X\f3se|txy\f1 \|
|00002700| 28 65 6d 20 43 6f 6d 6d | 61 6e 64 2c 20 74 77 6f |(em Comm|and, two|
|00002710| 20 69 6e 70 75 74 73 2e | 0a 58 2e 49 4e 0a 58 54 | inputs.|.X.IN.XT|
|00002720| 68 65 20 74 77 6f 20 69 | 6e 70 75 74 73 20 6d 75 |he two i|nputs mu|
|00002730| 73 74 20 62 65 20 6e 75 | 6d 62 65 72 73 2e 20 20 |st be nu|mbers. |
|00002740| 54 68 65 20 74 75 72 74 | 6c 65 20 69 73 20 6d 6f |The turt|le is mo|
|00002750| 76 65 64 20 74 6f 20 74 | 68 65 20 70 6f 69 6e 74 |ved to t|he point|
|00002760| 0a 58 6f 6e 20 74 68 65 | 20 73 63 72 65 65 6e 20 |.Xon the| screen |
|00002770| 77 68 6f 73 65 20 78 20 | 28 68 6f 72 69 7a 6f 6e |whose x |(horizon|
|00002780| 74 61 6c 29 20 63 6f 6f | 72 64 69 6e 61 74 65 20 |tal) coo|rdinate |
|00002790| 69 73 20 74 68 65 20 66 | 69 72 73 74 20 69 6e 70 |is the f|irst inp|
|000027a0| 75 74 2c 0a 58 61 6e 64 | 20 77 68 6f 73 65 20 79 |ut,.Xand| whose y|
|000027b0| 20 28 76 65 72 74 69 63 | 61 6c 29 20 63 6f 6f 72 | (vertic|al) coor|
|000027c0| 64 69 6e 61 74 65 20 69 | 73 20 74 68 65 20 73 65 |dinate i|s the se|
|000027d0| 63 6f 6e 64 20 69 6e 70 | 75 74 2e 20 20 54 68 65 |cond inp|ut. The|
|000027e0| 20 63 65 6e 74 65 72 0a | 58 6f 66 20 74 68 65 20 | center.|Xof the |
|000027f0| 73 63 72 65 65 6e 2c 20 | 77 68 65 72 65 20 74 68 |screen, |where th|
|00002800| 65 20 74 75 72 74 6c 65 | 20 73 74 61 72 74 73 2c |e turtle| starts,|
|00002810| 20 68 61 73 20 62 6f 74 | 68 20 63 6f 6f 72 64 69 | has bot|h coordi|
|00002820| 6e 61 74 65 73 20 7a 65 | 72 6f 2e 0a 58 49 66 20 |nates ze|ro..XIf |
|00002830| 74 68 65 20 70 65 6e 20 | 69 73 20 64 6f 77 6e 2c |the pen |is down,|
|00002840| 20 74 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 64 72 | this co|mmand dr|
|00002850| 61 77 73 20 61 20 6c 69 | 6e 65 2e 20 20 54 68 69 |aws a li|ne. Thi|
|00002860| 73 20 63 6f 6d 6d 61 6e | 64 0a 58 61 70 70 6c 69 |s comman|d.Xappli|
|00002870| 65 73 20 6f 6e 6c 79 20 | 74 6f 20 74 68 65 20 64 |es only |to the d|
|00002880| 69 73 70 6c 61 79 20 74 | 75 72 74 6c 65 2e 0a 58 |isplay t|urtle..X|
|00002890| 2e 4f 55 0a 58 5c 66 33 | 73 65 74 68 65 61 64 69 |.OU.X\f3|setheadi|
|000028a0| 6e 67 5c 66 31 20 5c 28 | 65 6d 20 43 6f 6d 6d 61 |ng\f1 \(|em Comma|
|000028b0| 6e 64 2c 20 6f 6e 65 20 | 69 6e 70 75 74 2e 20 20 |nd, one |input. |
|000028c0| 41 62 62 72 65 76 69 61 | 74 69 6f 6e 3a 20 5c 66 |Abbrevia|tion: \f|
|000028d0| 33 73 65 74 68 5c 66 31 | 0a 58 2e 49 4e 0a 58 54 |3seth\f1|.X.IN.XT|
|000028e0| 68 65 20 69 6e 70 75 74 | 20 6d 75 73 74 20 62 65 |he input| must be|
|000028f0| 20 61 20 6e 75 6d 62 65 | 72 2e 20 20 54 68 65 20 | a numbe|r. The |
|00002900| 74 75 72 74 6c 65 27 73 | 20 68 65 61 64 69 6e 67 |turtle's| heading|
|00002910| 20 69 73 20 73 65 74 20 | 74 6f 20 74 68 65 0a 58 | is set |to the.X|
|00002920| 69 6e 70 75 74 2c 20 74 | 61 6b 65 6e 20 69 6e 20 |input, t|aken in |
|00002930| 64 65 67 72 65 65 73 2e | 20 20 5a 65 72 6f 20 70 |degrees.| Zero p|
|00002940| 6f 69 6e 74 73 20 73 74 | 72 61 69 67 68 74 20 75 |oints st|raight u|
|00002950| 70 2c 20 61 73 20 74 68 | 65 20 74 75 72 74 6c 65 |p, as th|e turtle|
|00002960| 0a 58 73 74 61 72 74 73 | 20 6f 75 74 3b 20 70 6f |.Xstarts| out; po|
|00002970| 73 69 74 69 76 65 20 68 | 65 61 64 69 6e 67 73 20 |sitive h|eadings |
|00002980| 61 72 65 20 63 6c 6f 63 | 6b 77 69 73 65 20 66 72 |are cloc|kwise fr|
|00002990| 6f 6d 20 7a 65 72 6f 2e | 20 20 54 68 69 73 20 63 |om zero.| This c|
|000029a0| 6f 6d 6d 61 6e 64 0a 58 | 61 70 70 6c 69 65 73 20 |ommand.X|applies |
|000029b0| 6f 6e 6c 79 20 74 6f 20 | 74 68 65 20 64 69 73 70 |only to |the disp|
|000029c0| 6c 61 79 20 74 75 72 74 | 6c 65 2e 0a 58 2e 4f 55 |lay turt|le..X.OU|
|000029d0| 0a 58 5c 66 33 74 6f 77 | 61 72 64 73 78 79 5c 66 |.X\f3tow|ardsxy\f|
|000029e0| 31 20 5c 28 65 6d 20 4f | 70 65 72 61 74 69 6f 6e |1 \(em O|peration|
|000029f0| 2c 20 74 77 6f 20 69 6e | 70 75 74 73 2e 0a 58 2e |, two in|puts..X.|
|00002a00| 49 4e 0a 58 54 68 69 73 | 20 6f 70 65 72 61 74 69 |IN.XThis| operati|
|00002a10| 6f 6e 20 61 70 70 6c 69 | 65 73 20 6f 6e 6c 79 20 |on appli|es only |
|00002a20| 74 6f 20 74 68 65 20 64 | 69 73 70 6c 61 79 20 74 |to the d|isplay t|
|00002a30| 75 72 74 6c 65 2e 20 20 | 54 68 65 20 74 77 6f 20 |urtle. |The two |
|00002a40| 69 6e 70 75 74 73 20 6d | 75 73 74 0a 58 62 65 20 |inputs m|ust.Xbe |
|00002a50| 6e 75 6d 62 65 72 73 2c | 20 77 68 69 63 68 20 61 |numbers,| which a|
|00002a60| 72 65 20 74 68 65 20 78 | 20 61 6e 64 20 79 20 63 |re the x| and y c|
|00002a70| 6f 6f 72 64 69 6e 61 74 | 65 73 20 6f 66 20 61 20 |oordinat|es of a |
|00002a80| 70 6f 69 6e 74 20 6f 6e | 20 74 68 65 20 54 56 0a |point on| the TV.|
|00002a90| 58 73 63 72 65 65 6e 2e | 20 20 54 68 65 20 6f 75 |Xscreen.| The ou|
|00002aa0| 74 70 75 74 20 69 73 20 | 61 20 6e 75 6d 62 65 72 |tput is |a number|
|00002ab0| 20 77 68 69 63 68 20 69 | 73 20 74 68 65 20 68 65 | which i|s the he|
|00002ac0| 61 64 69 6e 67 20 74 6f | 20 77 68 69 63 68 20 74 |ading to| which t|
|00002ad0| 68 65 20 74 75 72 74 6c | 65 0a 58 6d 75 73 74 20 |he turtl|e.Xmust |
|00002ae0| 62 65 20 73 65 74 2c 20 | 69 6e 20 6f 72 64 65 72 |be set, |in order|
|00002af0| 20 74 6f 20 70 6f 69 6e | 74 20 74 6f 77 61 72 64 | to poin|t toward|
|00002b00| 73 20 74 68 61 74 20 70 | 6f 69 6e 74 20 66 72 6f |s that p|oint fro|
|00002b10| 6d 20 69 74 73 20 63 75 | 72 72 65 6e 74 0a 58 70 |m its cu|rrent.Xp|
|00002b20| 6f 73 69 74 69 6f 6e 2e | 20 20 4e 6f 74 65 3a 20 |osition.| Note: |
|00002b30| 74 68 69 73 20 6f 70 65 | 72 61 74 69 6f 6e 20 64 |this ope|ration d|
|00002b40| 6f 65 73 20 6e 6f 74 20 | 61 63 74 75 61 6c 6c 79 |oes not |actually|
|00002b50| 20 6d 6f 76 65 20 6f 72 | 20 74 75 72 6e 20 74 68 | move or| turn th|
|00002b60| 65 0a 58 74 75 72 74 6c | 65 2e 20 20 59 6f 75 20 |e.Xturtl|e. You |
|00002b70| 6d 75 73 74 20 75 73 65 | 20 69 74 20 61 73 20 74 |must use| it as t|
|00002b80| 68 65 20 69 6e 70 75 74 | 20 74 6f 20 5c 66 33 73 |he input| to \f3s|
|00002b90| 65 74 68 65 61 64 69 6e | 67 5c 66 31 20 69 66 20 |etheadin|g\f1 if |
|00002ba0| 74 68 61 74 20 69 73 0a | 58 77 68 61 74 20 79 6f |that is.|Xwhat yo|
|00002bb0| 75 20 77 61 6e 74 2e 0a | 58 2e 4f 55 0a 58 5c 66 |u want..|X.OU.X\f|
|00002bc0| 33 78 63 6f 72 5c 66 31 | 20 5c 28 65 6d 20 4f 70 |3xcor\f1| \(em Op|
|00002bd0| 65 72 61 74 69 6f 6e 2c | 20 6e 6f 20 69 6e 70 75 |eration,| no inpu|
|00002be0| 74 73 2e 0a 58 2e 49 4e | 0a 58 54 68 65 20 6f 75 |ts..X.IN|.XThe ou|
|00002bf0| 74 70 75 74 20 69 73 20 | 74 68 65 20 74 75 72 74 |tput is |the turt|
|00002c00| 6c 65 27 73 20 63 75 72 | 72 65 6e 74 20 78 20 28 |le's cur|rent x (|
|00002c10| 68 6f 72 69 7a 6f 6e 74 | 61 6c 29 20 63 6f 6f 72 |horizont|al) coor|
|00002c20| 64 69 6e 61 74 65 2e 20 | 20 54 68 65 0a 58 6f 70 |dinate. | The.Xop|
|00002c30| 65 72 61 74 69 6f 6e 20 | 77 6f 72 6b 73 20 6f 6e |eration |works on|
|00002c40| 6c 79 20 77 69 74 68 20 | 74 68 65 20 64 69 73 70 |ly with |the disp|
|00002c50| 6c 61 79 20 74 75 72 74 | 6c 65 2e 0a 58 2e 4f 55 |lay turt|le..X.OU|
|00002c60| 0a 58 5c 66 33 79 63 6f | 72 5c 66 31 20 5c 28 65 |.X\f3yco|r\f1 \(e|
|00002c70| 6d 20 4f 70 65 72 61 74 | 69 6f 6e 2c 20 6e 6f 20 |m Operat|ion, no |
|00002c80| 69 6e 70 75 74 73 2e 0a | 58 2e 49 4e 0a 58 54 68 |inputs..|X.IN.XTh|
|00002c90| 65 20 6f 75 74 70 75 74 | 20 69 73 20 74 68 65 20 |e output| is the |
|00002ca0| 74 75 72 74 6c 65 27 73 | 20 63 75 72 72 65 6e 74 |turtle's| current|
|00002cb0| 20 79 20 28 76 65 72 74 | 69 63 61 6c 29 20 63 6f | y (vert|ical) co|
|00002cc0| 6f 72 64 69 6e 61 74 65 | 2e 20 20 54 68 69 73 0a |ordinate|. This.|
|00002cd0| 58 6f 70 65 72 61 74 69 | 6f 6e 20 77 6f 72 6b 73 |Xoperati|on works|
|00002ce0| 20 6f 6e 6c 79 20 77 69 | 74 68 20 74 68 65 20 64 | only wi|th the d|
|00002cf0| 69 73 70 6c 61 79 20 74 | 75 72 74 6c 65 2e 0a 58 |isplay t|urtle..X|
|00002d00| 2e 4f 55 0a 58 5c 66 33 | 68 65 61 64 69 6e 67 5c |.OU.X\f3|heading\|
|00002d10| 66 31 20 5c 28 65 6d 20 | 4f 70 65 72 61 74 69 6f |f1 \(em |Operatio|
|00002d20| 6e 2c 20 6e 6f 20 69 6e | 70 75 74 73 2e 0a 58 2e |n, no in|puts..X.|
|00002d30| 49 4e 0a 58 54 68 65 20 | 6f 75 74 70 75 74 20 69 |IN.XThe |output i|
|00002d40| 73 20 74 68 65 20 74 75 | 72 74 6c 65 27 73 20 63 |s the tu|rtle's c|
|00002d50| 75 72 72 65 6e 74 20 68 | 65 61 64 69 6e 67 20 69 |urrent h|eading i|
|00002d60| 6e 20 64 65 67 72 65 65 | 73 2e 20 20 54 68 69 73 |n degree|s. This|
|00002d70| 20 6f 70 65 72 61 74 69 | 6f 6e 0a 58 77 6f 72 6b | operati|on.Xwork|
|00002d80| 73 20 6f 6e 6c 79 20 77 | 69 74 68 20 74 68 65 20 |s only w|ith the |
|00002d90| 64 69 73 70 6c 61 79 20 | 74 75 72 74 6c 65 2e 0a |display |turtle..|
|00002da0| 58 2e 4f 55 0a 58 5c 66 | 33 67 65 74 70 65 6e 5c |X.OU.X\f|3getpen\|
|00002db0| 66 31 20 5c 28 65 6d 20 | 4f 70 65 72 61 74 69 6f |f1 \(em |Operatio|
|00002dc0| 6e 2c 20 6e 6f 20 69 6e | 70 75 74 73 2e 0a 58 2e |n, no in|puts..X.|
|00002dd0| 49 4e 0a 58 54 68 65 20 | 6f 75 74 70 75 74 20 69 |IN.XThe |output i|
|00002de0| 73 20 74 68 65 20 74 75 | 72 74 6c 65 27 73 20 63 |s the tu|rtle's c|
|00002df0| 75 72 72 65 6e 74 20 70 | 65 6e 20 63 6f 6c 6f 72 |urrent p|en color|
|00002e00| 2c 20 6f 72 20 28 6f 6e | 20 74 68 65 20 41 74 61 |, or (on| the Ata|
|00002e10| 72 69 29 20 7a 65 72 6f | 0a 58 69 66 20 69 6e 20 |ri) zero|.Xif in |
|00002e20| 62 6c 61 63 6b 2d 61 6e | 64 2d 77 68 69 74 65 0a |black-an|d-white.|
|00002e30| 58 6d 6f 64 65 2e 20 20 | 54 68 69 73 20 6f 70 65 |Xmode. |This ope|
|00002e40| 72 61 74 69 6f 6e 20 77 | 6f 72 6b 73 20 6f 6e 6c |ration w|orks onl|
|00002e50| 79 20 77 69 74 68 20 74 | 68 65 20 64 69 73 70 6c |y with t|he displ|
|00002e60| 61 79 20 74 75 72 74 6c | 65 2e 0a 58 2e 4f 55 0a |ay turtl|e..X.OU.|
|00002e70| 58 5c 66 33 73 65 74 73 | 63 72 75 6e 63 68 5c 66 |X\f3sets|crunch\f|
|00002e80| 31 20 5c 28 65 6d 20 43 | 6f 6d 6d 61 6e 64 2c 20 |1 \(em C|ommand, |
|00002e90| 6f 6e 65 20 69 6e 70 75 | 74 2e 20 20 41 62 62 72 |one inpu|t. Abbr|
|00002ea0| 65 76 69 61 74 69 6f 6e | 3a 20 5c 66 33 73 65 74 |eviation|: \f3set|
|00002eb0| 73 63 72 75 6e 5c 66 31 | 0a 58 2e 49 4e 0a 58 54 |scrun\f1|.X.IN.XT|
|00002ec0| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 69 73 20 75 |his comm|and is u|
|00002ed0| 73 65 64 20 6f 6e 6c 79 | 20 66 6f 72 20 64 69 73 |sed only| for dis|
|00002ee0| 70 6c 61 79 20 74 75 72 | 74 6c 65 73 2e 20 20 54 |play tur|tles. T|
|00002ef0| 68 65 0a 58 69 6e 70 75 | 74 20 6d 75 73 74 20 62 |he.Xinpu|t must b|
|00002f00| 65 20 61 20 6e 75 6d 62 | 65 72 2e 20 20 54 68 65 |e a numb|er. The|
|00002f10| 20 76 65 72 74 69 63 61 | 6c 20 63 6f 6d 70 6f 6e | vertica|l compon|
|00002f20| 65 6e 74 20 6f 66 20 74 | 75 72 74 6c 65 20 6d 6f |ent of t|urtle mo|
|00002f30| 74 69 6f 6e 20 69 73 0a | 58 6d 75 6c 74 69 70 6c |tion is.|Xmultipl|
|00002f40| 69 65 64 20 62 79 20 74 | 68 69 73 20 6e 75 6d 62 |ied by t|his numb|
|00002f50| 65 72 20 62 65 66 6f 72 | 65 20 65 61 63 68 20 6d |er befor|e each m|
|00002f60| 6f 74 69 6f 6e 20 69 73 | 20 74 61 6b 65 6e 2e 20 |otion is| taken. |
|00002f70| 20 49 66 20 73 71 75 61 | 72 65 73 20 63 6f 6d 65 | If squa|res come|
|00002f80| 0a 58 6f 75 74 20 74 6f | 6f 20 77 69 64 65 20 6f |.Xout to|o wide o|
|00002f90| 6e 20 79 6f 75 72 20 73 | 63 72 65 65 6e 2c 20 79 |n your s|creen, y|
|00002fa0| 6f 75 20 73 68 6f 75 6c | 64 20 69 6e 63 72 65 61 |ou shoul|d increa|
|00002fb0| 73 65 20 74 68 65 20 6e | 75 6d 62 65 72 3b 20 69 |se the n|umber; i|
|00002fc0| 66 20 74 6f 6f 20 74 61 | 6c 6c 2c 0a 58 79 6f 75 |f too ta|ll,.Xyou|
|00002fd0| 20 73 68 6f 75 6c 64 20 | 64 65 63 72 65 61 73 65 | should |decrease|
|00002fe0| 20 69 74 2e 20 20 28 59 | 6f 75 20 63 61 6e 20 61 | it. (Y|ou can a|
|00002ff0| 6c 73 6f 20 75 73 65 20 | 5c 66 33 73 65 74 73 63 |lso use |\f3setsc|
|00003000| 72 75 6e 63 68 5c 66 31 | 20 74 6f 20 64 65 66 6f |runch\f1| to defo|
|00003010| 72 6d 20 74 68 65 0a 58 | 74 75 72 74 6c 65 27 73 |rm the.X|turtle's|
|00003020| 20 6d 6f 74 69 6f 6e 20 | 6f 6e 20 70 75 72 70 6f | motion |on purpo|
|00003030| 73 65 2c 20 73 6f 20 66 | 6f 72 20 65 78 61 6d 70 |se, so f|or examp|
|00003040| 6c 65 20 61 20 63 69 72 | 63 6c 65 20 70 72 6f 67 |le a cir|cle prog|
|00003050| 72 61 6d 20 77 69 6c 6c | 20 64 72 61 77 0a 58 61 |ram will| draw.Xa|
|00003060| 6e 20 65 6c 6c 69 70 73 | 65 20 69 6e 73 74 65 61 |n ellips|e instea|
|00003070| 64 2e 29 20 20 54 68 65 | 20 69 6e 69 74 69 61 6c |d.) The| initial|
|00003080| 20 73 63 72 75 6e 63 68 | 20 76 61 6c 75 65 20 64 | scrunch| value d|
|00003090| 65 70 65 6e 64 73 20 6f | 6e 20 74 68 65 20 74 65 |epends o|n the te|
|000030a0| 72 6d 69 6e 61 6c 0a 58 | 79 6f 75 20 61 72 65 20 |rminal.X|you are |
|000030b0| 75 73 69 6e 67 3a 20 66 | 6f 72 20 74 68 65 20 41 |using: f|or the A|
|000030c0| 74 61 72 69 20 61 6e 64 | 20 74 68 65 20 47 69 67 |tari and| the Gig|
|000030d0| 69 2c 20 69 74 20 69 73 | 20 61 72 6f 75 6e 64 20 |i, it is| around |
|000030e0| 30 2e 38 20 28 79 6f 75 | 72 20 70 61 72 74 69 63 |0.8 (you|r partic|
|000030f0| 75 6c 61 72 0a 58 63 6f | 6d 70 75 74 65 72 20 63 |ular.Xco|mputer c|
|00003100| 65 6e 74 65 72 20 77 69 | 6c 6c 20 61 64 6a 75 73 |enter wi|ll adjus|
|00003110| 74 20 74 68 69 73 20 66 | 6f 72 20 74 68 65 20 70 |t this f|or the p|
|00003120| 61 72 74 69 63 75 6c 61 | 72 20 54 56 20 6d 6f 6e |articula|r TV mon|
|00003130| 69 74 6f 72 73 20 79 6f | 75 20 75 73 65 29 2c 0a |itors yo|u use),.|
|00003140| 58 62 75 74 20 66 6f 72 | 20 74 68 65 20 41 44 4d |Xbut for| the ADM|
|00003150| 2c 20 54 65 6b 74 72 6f | 6e 69 78 2c 20 61 6e 64 |, Tektro|nix, and|
|00003160| 20 53 75 6e 2c 20 69 74 | 20 69 73 20 31 2e 30 20 | Sun, it| is 1.0 |
|00003170| 62 65 63 61 75 73 65 20 | 74 68 65 73 65 20 74 65 |because |these te|
|00003180| 72 6d 69 6e 61 6c 73 0a | 58 64 69 73 70 6c 61 79 |rminals.|Xdisplay|
|00003190| 20 74 68 65 20 73 61 6d | 65 20 73 69 7a 65 20 73 | the sam|e size s|
|000031a0| 74 65 70 73 20 68 6f 72 | 69 7a 6f 6e 74 61 6c 6c |teps hor|izontall|
|000031b0| 79 20 61 6e 64 20 76 65 | 72 74 69 63 61 6c 6c 79 |y and ve|rtically|
|000031c0| 2e 0a 58 2e 4f 55 0a 58 | 5c 66 33 73 63 72 75 6e |..X.OU.X|\f3scrun|
|000031d0| 63 68 5c 66 31 20 5c 28 | 65 6d 20 4f 70 65 72 61 |ch\f1 \(|em Opera|
|000031e0| 74 69 6f 6e 2c 20 6e 6f | 20 69 6e 70 75 74 73 2e |tion, no| inputs.|
|000031f0| 0a 58 2e 49 4e 0a 58 54 | 68 69 73 20 6f 70 65 72 |.X.IN.XT|his oper|
|00003200| 61 74 69 6f 6e 20 69 73 | 20 75 73 65 64 20 6f 6e |ation is| used on|
|00003210| 6c 79 20 66 6f 72 20 64 | 69 73 70 6c 61 79 20 74 |ly for d|isplay t|
|00003220| 75 72 74 6c 65 73 2e 20 | 20 49 74 20 6f 75 74 70 |urtles. | It outp|
|00003230| 75 74 73 20 61 20 6e 75 | 6d 62 65 72 2c 20 77 68 |uts a nu|mber, wh|
|00003240| 69 63 68 0a 58 69 73 20 | 74 68 65 20 73 63 72 75 |ich.Xis |the scru|
|00003250| 6e 63 68 20 66 61 63 74 | 6f 72 20 28 6f 72 20 61 |nch fact|or (or a|
|00003260| 73 70 65 63 74 20 72 61 | 74 69 6f 29 20 62 79 20 |spect ra|tio) by |
|00003270| 77 68 69 63 68 20 76 65 | 72 74 69 63 61 6c 20 6d |which ve|rtical m|
|00003280| 6f 74 69 6f 6e 20 69 73 | 0a 58 6d 75 6c 74 69 70 |otion is|.Xmultip|
|00003290| 6c 69 65 64 20 62 65 66 | 6f 72 65 20 69 74 20 69 |lied bef|ore it i|
|000032a0| 73 20 64 69 73 70 6c 61 | 79 65 64 2e 20 20 54 68 |s displa|yed. Th|
|000032b0| 69 73 20 6e 75 6d 62 65 | 72 20 69 73 20 63 68 61 |is numbe|r is cha|
|000032c0| 6e 67 65 64 20 75 73 69 | 6e 67 20 74 68 65 0a 58 |nged usi|ng the.X|
|000032d0| 5c 66 33 73 65 74 73 63 | 72 75 6e 63 68 5c 66 31 |\f3setsc|runch\f1|
|000032e0| 20 63 6f 6d 6d 61 6e 64 | 2e 0a 58 2e 4f 55 0a 58 | command|..X.OU.X|
|000032f0| 2e 74 69 20 2b 35 0a 58 | 2e 55 42 20 22 50 72 69 |.ti +5.X|.UB "Pri|
|00003300| 6d 69 74 69 76 65 20 70 | 72 6f 63 65 64 75 72 65 |mitive p|rocedure|
|00003310| 73 20 66 6f 72 20 61 72 | 69 74 68 6d 65 74 69 63 |s for ar|ithmetic|
|00003320| 2e 22 0a 58 53 65 76 65 | 72 61 6c 20 70 72 6f 63 |.".XSeve|ral proc|
|00003330| 65 64 75 72 65 73 0a 58 | 61 72 65 20 61 76 61 69 |edures.X|are avai|
|00003340| 6c 61 62 6c 65 20 66 6f | 72 20 61 72 69 74 68 6d |lable fo|r arithm|
|00003350| 65 74 69 63 20 6f 70 65 | 72 61 74 69 6f 6e 73 20 |etic ope|rations |
|00003360| 6f 6e 20 6e 75 6d 62 65 | 72 73 2e 20 20 49 6e 20 |on numbe|rs. In |
|00003370| 61 6c 6c 0a 58 63 61 73 | 65 73 2c 20 74 68 65 20 |all.Xcas|es, the |
|00003380| 69 6e 70 75 74 73 20 74 | 6f 20 74 68 65 73 65 20 |inputs t|o these |
|00003390| 70 72 6f 63 65 64 75 72 | 65 73 20 6d 75 73 74 20 |procedur|es must |
|000033a0| 62 65 20 6e 75 6d 62 65 | 72 73 2c 20 65 78 63 65 |be numbe|rs, exce|
|000033b0| 70 74 0a 58 61 73 20 6f | 74 68 65 72 77 69 73 65 |pt.Xas o|therwise|
|000033c0| 20 69 6e 64 69 63 61 74 | 65 64 20 69 6e 20 74 68 | indicat|ed in th|
|000033d0| 65 20 69 6e 64 69 76 69 | 64 75 61 6c 20 64 65 73 |e indivi|dual des|
|000033e0| 63 72 69 70 74 69 6f 6e | 73 2e 0a 58 2e 50 50 0a |cription|s..X.PP.|
|000033f0| 58 49 6e 20 67 65 6e 65 | 72 61 6c 2c 20 70 72 6f |XIn gene|ral, pro|
|00003400| 63 65 64 75 72 65 73 20 | 61 72 65 20 75 73 65 64 |cedures |are used|
|00003410| 20 69 6e 20 4c 6f 67 6f | 20 62 79 20 74 79 70 69 | in Logo| by typi|
|00003420| 6e 67 20 66 69 72 73 74 | 20 74 68 65 20 6e 61 6d |ng first| the nam|
|00003430| 65 0a 58 6f 66 20 74 68 | 65 20 70 72 6f 63 65 64 |e.Xof th|e proced|
|00003440| 75 72 65 2c 20 74 68 65 | 6e 20 69 74 73 20 69 6e |ure, the|n its in|
|00003450| 70 75 74 73 2e 20 20 54 | 68 69 73 20 69 73 20 74 |puts. T|his is t|
|00003460| 72 75 65 20 6f 66 20 61 | 72 69 74 68 6d 65 74 69 |rue of a|rithmeti|
|00003470| 63 0a 58 70 72 6f 63 65 | 64 75 72 65 73 20 61 6c |c.Xproce|dures al|
|00003480| 73 6f 2c 20 65 2e 67 2e | 0a 58 2e 45 58 0a 58 73 |so, e.g.|.X.EX.Xs|
|00003490| 75 6d 20 33 20 32 0a 58 | 2e 45 43 0a 58 48 6f 77 |um 3 2.X|.EC.XHow|
|000034a0| 65 76 65 72 2c 20 66 6f | 72 20 73 6f 6d 65 20 61 |ever, fo|r some a|
|000034b0| 72 69 74 68 6d 65 74 69 | 63 20 6f 70 65 72 61 74 |rithmeti|c operat|
|000034c0| 69 6f 6e 73 2c 20 4c 6f | 67 6f 20 61 6c 73 6f 20 |ions, Lo|go also |
|000034d0| 72 65 63 6f 67 6e 69 7a | 65 73 20 74 68 65 0a 58 |recogniz|es the.X|
|000034e0| 6d 6f 72 65 20 74 72 61 | 64 69 74 69 6f 6e 61 6c |more tra|ditional|
|000034f0| 20 5c 66 32 69 6e 66 69 | 78 5c 66 31 20 6e 6f 74 | \f2infi|x\f1 not|
|00003500| 61 74 69 6f 6e 2c 20 77 | 69 74 68 20 74 68 65 20 |ation, w|ith the |
|00003510| 6f 70 65 72 61 74 69 6f | 6e 20 62 65 74 77 65 65 |operatio|n betwee|
|00003520| 6e 0a 58 74 68 65 20 74 | 77 6f 20 69 6e 70 75 74 |n.Xthe t|wo input|
|00003530| 73 3a 0a 58 2e 45 58 0a | 58 33 20 2b 20 32 0a 58 |s:.X.EX.|X3 + 2.X|
|00003540| 2e 45 43 0a 58 42 65 20 | 77 61 72 6e 65 64 2c 20 |.EC.XBe |warned, |
|00003550| 74 68 6f 75 67 68 2c 20 | 74 68 61 74 20 74 68 65 |though, |that the|
|00003560| 20 75 73 65 20 6f 66 20 | 69 6e 66 69 78 20 66 6f | use of |infix fo|
|00003570| 72 6d 73 20 6d 61 6b 65 | 73 20 69 74 20 64 69 66 |rms make|s it dif|
|00003580| 66 69 63 75 6c 74 0a 58 | 66 6f 72 20 4c 6f 67 6f |ficult.X|for Logo|
|00003590| 20 74 6f 20 6b 6e 6f 77 | 20 68 6f 77 20 74 6f 20 | to know| how to |
|000035a0| 67 72 6f 75 70 20 6f 70 | 65 72 61 74 69 6f 6e 73 |group op|erations|
|000035b0| 2c 20 75 6e 6c 65 73 73 | 20 70 61 72 65 6e 74 68 |, unless| parenth|
|000035c0| 65 73 65 73 20 61 72 65 | 0a 58 75 73 65 64 2e 20 |eses are|.Xused. |
|000035d0| 20 49 66 20 79 6f 75 20 | 73 74 69 63 6b 20 74 6f | If you |stick to|
|000035e0| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 28 69 | the sta|ndard (i|
|000035f0| 6e 20 4c 6f 67 6f 29 20 | 70 72 65 66 69 78 20 6e |n Logo) |prefix n|
|00003600| 6f 74 61 74 69 6f 6e 2c | 0a 58 74 68 65 20 67 72 |otation,|.Xthe gr|
|00003610| 6f 75 70 69 6e 67 20 69 | 73 20 61 6c 77 61 79 73 |ouping i|s always|
|00003620| 20 75 6e 61 6d 62 69 67 | 75 6f 75 73 2e 20 20 46 | unambig|uous. F|
|00003630| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 65 20 |or examp|le, the |
|00003640| 66 69 72 73 74 20 74 77 | 6f 20 6f 66 0a 58 74 68 |first tw|o of.Xth|
|00003650| 65 73 65 20 74 68 72 65 | 65 20 69 6e 73 74 72 75 |ese thre|e instru|
|00003660| 63 74 69 6f 6e 73 20 61 | 72 65 20 65 71 75 69 76 |ctions a|re equiv|
|00003670| 61 6c 65 6e 74 2c 20 62 | 75 74 20 74 68 65 20 74 |alent, b|ut the t|
|00003680| 68 69 72 64 20 69 73 20 | 6e 6f 74 3a 0a 58 2e 45 |hird is |not:.X.E|
|00003690| 58 0a 58 69 66 20 65 71 | 75 61 6c 70 20 63 6f 75 |X.Xif eq|ualp cou|
|000036a0| 6e 74 20 22 68 65 6c 6c | 6f 20 35 20 5b 70 72 69 |nt "hell|o 5 [pri|
|000036b0| 6e 74 20 22 59 65 73 2e | 5d 0a 58 69 66 20 28 63 |nt "Yes.|].Xif (c|
|000036c0| 6f 75 6e 74 20 22 68 65 | 6c 6c 6f 29 20 3d 20 35 |ount "he|llo) = 5|
|000036d0| 20 5b 70 72 69 6e 74 20 | 22 59 65 73 2e 5d 0a 58 | [print |"Yes.].X|
|000036e0| 69 66 20 63 6f 75 6e 74 | 20 22 68 65 6c 6c 6f 20 |if count| "hello |
|000036f0| 3d 20 35 20 5b 70 72 69 | 6e 74 20 22 59 65 73 2e |= 5 [pri|nt "Yes.|
|00003700| 5d 0a 58 2e 45 43 0a 58 | 54 68 65 20 72 65 61 73 |].X.EC.X|The reas|
|00003710| 6f 6e 20 66 6f 72 20 74 | 68 65 20 65 72 72 6f 72 |on for t|he error|
|00003720| 20 6d 65 73 73 61 67 65 | 20 70 72 6f 64 75 63 65 | message| produce|
|00003730| 64 20 62 79 20 74 68 65 | 20 6c 61 73 74 20 6f 66 |d by the| last of|
|00003740| 20 74 68 6f 73 65 20 74 | 68 72 65 65 0a 58 69 6e | those t|hree.Xin|
|00003750| 73 74 72 75 63 74 69 6f | 6e 73 20 69 73 20 74 68 |structio|ns is th|
|00003760| 61 74 20 4c 6f 67 6f 20 | 69 6e 74 65 72 70 72 65 |at Logo |interpre|
|00003770| 74 73 20 69 74 20 61 73 | 0a 58 2e 45 58 0a 58 69 |ts it as|.X.EX.Xi|
|00003780| 66 20 63 6f 75 6e 74 20 | 65 71 75 61 6c 70 20 22 |f count |equalp "|
|00003790| 68 65 6c 6c 6f 20 35 20 | 5b 70 72 69 6e 74 20 22 |hello 5 |[print "|
|000037a0| 59 65 73 2e 5d 0a 58 2e | 45 43 0a 58 54 68 61 74 |Yes.].X.|EC.XThat|
|000037b0| 20 69 73 2c 20 74 68 65 | 20 65 71 75 61 6c 69 74 | is, the| equalit|
|000037c0| 79 20 74 65 73 74 20 69 | 73 20 64 6f 6e 65 20 66 |y test i|s done f|
|000037d0| 69 72 73 74 2c 20 6f 6e | 20 74 68 65 20 77 6f 72 |irst, on| the wor|
|000037e0| 64 20 5c 66 33 68 65 6c | 6c 6f 5c 66 31 0a 58 69 |d \f3hel|lo\f1.Xi|
|000037f0| 74 73 65 6c 66 2c 20 72 | 61 74 68 65 72 20 74 68 |tself, r|ather th|
|00003800| 61 6e 20 66 69 72 73 74 | 20 74 61 6b 69 6e 67 20 |an first| taking |
|00003810| 74 68 65 20 63 6f 75 6e | 74 20 6f 66 20 5c 66 33 |the coun|t of \f3|
|00003820| 68 65 6c 6c 6f 5c 66 31 | 20 61 73 0a 58 77 61 73 |hello\f1| as.Xwas|
|00003830| 20 69 6e 74 65 6e 64 65 | 64 2e 0a 58 2e 73 70 20 | intende|d..X.sp |
|00003840| 31 0a 58 5c 66 33 73 75 | 6d 5c 66 31 20 5c 28 65 |1.X\f3su|m\f1 \(e|
|00003850| 6d 20 4f 70 65 72 61 74 | 69 6f 6e 2c 20 74 77 6f |m Operat|ion, two|
|00003860| 20 69 6e 70 75 74 73 2e | 20 20 49 6e 66 69 78 3a | inputs.| Infix:|
|00003870| 20 5c 66 33 2b 5c 66 31 | 0a 58 2e 49 4e 0a 58 54 | \f3+\f1|.X.IN.XT|
|00003880| 68 65 20 6f 75 74 70 75 | 74 20 6f 66 20 74 68 69 |he outpu|t of thi|
|00003890| 73 20 70 72 6f 63 65 64 | 75 72 65 20 69 73 20 74 |s proced|ure is t|
|000038a0| 68 65 20 73 75 6d 20 6f | 66 20 74 68 65 20 74 77 |he sum o|f the tw|
|000038b0| 6f 20 69 6e 70 75 74 73 | 2e 0a 58 2e 4f 55 0a 58 |o inputs|..X.OU.X|
|000038c0| 5c 66 33 64 69 66 66 65 | 72 65 6e 63 65 5c 66 31 |\f3diffe|rence\f1|
|000038d0| 20 5c 28 65 6d 20 4f 70 | 65 72 61 74 69 6f 6e 2c | \(em Op|eration,|
|000038e0| 20 74 77 6f 20 69 6e 70 | 75 74 73 2e 20 20 41 62 | two inp|uts. Ab|
|000038f0| 62 72 65 76 69 61 74 69 | 6f 6e 3a 20 5c 66 33 64 |breviati|on: \f3d|
|00003900| 69 66 66 5c 66 31 20 20 | 49 6e 66 69 78 3a 20 5c |iff\f1 |Infix: \|
|00003910| 66 33 2d 5c 66 31 0a 58 | 2e 49 4e 0a 58 54 68 65 |f3-\f1.X|.IN.XThe|
|00003920| 20 6f 75 74 70 75 74 20 | 6f 66 20 74 68 69 73 20 | output |of this |
|00003930| 70 72 6f 63 65 64 75 72 | 65 20 69 73 20 74 68 65 |procedur|e is the|
|00003940| 20 64 69 66 66 65 72 65 | 6e 63 65 20 6f 66 20 74 | differe|nce of t|
|00003950| 68 65 20 74 77 6f 20 69 | 6e 70 75 74 73 2e 0a 58 |he two i|nputs..X|
|00003960| 2e 4f 55 0a 58 5c 66 33 | 70 72 6f 64 75 63 74 5c |.OU.X\f3|product\|
|00003970| 66 31 20 5c 28 65 6d 20 | 4f 70 65 72 61 74 69 6f |f1 \(em |Operatio|
|00003980| 6e 2c 20 74 77 6f 20 69 | 6e 70 75 74 73 2e 20 20 |n, two i|nputs. |
|00003990| 49 6e 66 69 78 3a 20 5c | 66 33 2a 5c 66 31 0a 58 |Infix: \|f3*\f1.X|
|000039a0| 2e 49 4e 0a 58 54 68 65 | 20 6f 75 74 70 75 74 20 |.IN.XThe| output |
|000039b0| 6f 66 20 74 68 69 73 20 | 70 72 6f 63 65 64 75 72 |of this |procedur|
|000039c0| 65 20 69 73 20 74 68 65 | 20 70 72 6f 64 75 63 74 |e is the| product|
|000039d0| 20 6f 66 20 74 68 65 20 | 74 77 6f 20 69 6e 70 75 | of the |two inpu|
|000039e0| 74 73 2e 0a 58 2e 4f 55 | 0a 58 5c 66 33 71 75 6f |ts..X.OU|.X\f3quo|
|000039f0| 74 69 65 6e 74 5c 66 31 | 20 5c 28 65 6d 20 4f 70 |tient\f1| \(em Op|
|00003a00| 65 72 61 74 69 6f 6e 2c | 20 74 77 6f 20 69 6e 70 |eration,| two inp|
|00003a10| 75 74 73 2e 20 20 49 6e | 66 69 78 3a 20 5c 66 33 |uts. In|fix: \f3|
|00003a20| 2f 5c 66 31 0a 58 2e 49 | 4e 0a 58 54 68 65 20 6f |/\f1.X.I|N.XThe o|
|00003a30| 75 74 70 75 74 20 6f 66 | 20 74 68 69 73 20 70 72 |utput of| this pr|
|00003a40| 6f 63 65 64 75 72 65 20 | 69 73 20 74 68 65 20 71 |ocedure |is the q|
|00003a50| 75 6f 74 69 65 6e 74 20 | 6f 66 20 74 68 65 20 74 |uotient |of the t|
|00003a60| 77 6f 20 69 6e 70 75 74 | 73 2e 0a 58 2e 4f 55 0a |wo input|s..X.OU.|
|00003a70| 58 5c 66 33 72 65 6d 61 | 69 6e 64 65 72 5c 66 31 |X\f3rema|inder\f1|
|00003a80| 20 5c 28 65 6d 20 4f 70 | 65 72 61 74 69 6f 6e 2c | \(em Op|eration,|
|00003a90| 20 74 77 6f 20 69 6e 70 | 75 74 73 2e 20 20 41 62 | two inp|uts. Ab|
|00003aa0| 62 72 65 76 69 61 74 69 | 6f 6e 3a 20 5c 66 33 6d |breviati|on: \f3m|
|00003ab0| 6f 64 5c 66 31 20 20 49 | 6e 66 69 78 3a 20 5c 66 |od\f1 I|nfix: \f|
|00003ac0| 33 5c 5c 5c 66 31 0a 58 | 2e 49 4e 0a 58 54 68 65 |3\\\f1.X|.IN.XThe|
|00003ad0| 20 69 6e 70 75 74 73 20 | 74 6f 20 74 68 69 73 20 | inputs |to this |
|00003ae0| 70 72 6f 63 65 64 75 72 | 65 20 6d 75 73 74 20 62 |procedur|e must b|
|00003af0| 65 20 69 6e 74 65 67 65 | 72 73 2e 20 20 54 68 65 |e intege|rs. The|
|00003b00| 20 6f 75 74 70 75 74 20 | 69 73 20 61 6c 73 6f 20 | output |is also |
|00003b10| 61 6e 0a 58 69 6e 74 65 | 67 65 72 2c 20 61 6e 64 |an.Xinte|ger, and|
|00003b20| 20 69 73 20 74 68 65 20 | 72 65 6d 61 69 6e 64 65 | is the |remainde|
|00003b30| 72 20 6f 66 20 64 69 76 | 69 64 69 6e 67 20 74 68 |r of div|iding th|
|00003b40| 65 20 66 69 72 73 74 20 | 69 6e 70 75 74 20 62 79 |e first |input by|
|00003b50| 20 74 68 65 0a 58 73 65 | 63 6f 6e 64 2e 0a 58 2e | the.Xse|cond..X.|
|00003b60| 4f 55 0a 58 5c 66 33 6d | 61 78 69 6d 75 6d 5c 66 |OU.X\f3m|aximum\f|
|00003b70| 31 20 5c 28 65 6d 20 4f | 70 65 72 61 74 69 6f 6e |1 \(em O|peration|
|00003b80| 2c 20 74 77 6f 20 69 6e | 70 75 74 73 2e 20 20 41 |, two in|puts. A|
|00003b90| 62 62 72 65 76 69 61 74 | 69 6f 6e 3a 20 5c 66 33 |bbreviat|ion: \f3|
|00003ba0| 6d 61 78 5c 66 31 0a 58 | 2e 49 4e 0a 58 54 68 65 |max\f1.X|.IN.XThe|
|00003bb0| 20 6f 75 74 70 75 74 20 | 6f 66 20 74 68 69 73 20 | output |of this |
|00003bc0| 70 72 6f 63 65 64 75 72 | 65 20 69 73 20 65 71 75 |procedur|e is equ|
|00003bd0| 61 6c 20 74 6f 20 77 68 | 69 63 68 65 76 65 72 20 |al to wh|ichever |
|00003be0| 6f 66 20 74 68 65 20 74 | 77 6f 20 69 6e 70 75 74 |of the t|wo input|
|00003bf0| 73 0a 58 69 73 20 6e 75 | 6d 65 72 69 63 61 6c 6c |s.Xis nu|mericall|
|00003c00| 79 20 67 72 65 61 74 65 | 72 2e 0a 58 2e 4f 55 0a |y greate|r..X.OU.|
|00003c10| 58 5c 66 33 6d 69 6e 69 | 6d 75 6d 5c 66 31 20 5c |X\f3mini|mum\f1 \|
|00003c20| 28 65 6d 20 4f 70 65 72 | 61 74 69 6f 6e 2c 20 74 |(em Oper|ation, t|
|00003c30| 77 6f 20 69 6e 70 75 74 | 73 2e 20 20 41 62 62 72 |wo input|s. Abbr|
|00003c40| 65 76 69 61 74 69 6f 6e | 3a 20 5c 66 33 6d 69 6e |eviation|: \f3min|
|00003c50| 5c 66 31 0a 58 2e 49 4e | 0a 58 54 68 65 20 6f 75 |\f1.X.IN|.XThe ou|
|00003c60| 74 70 75 74 20 6f 66 20 | 74 68 69 73 20 70 72 6f |tput of |this pro|
|00003c70| 63 65 64 75 72 65 20 69 | 73 20 65 71 75 61 6c 20 |cedure i|s equal |
|00003c80| 74 6f 20 77 68 69 63 68 | 65 76 65 72 20 6f 66 20 |to which|ever of |
|00003c90| 74 68 65 20 74 77 6f 20 | 69 6e 70 75 74 73 0a 58 |the two |inputs.X|
|00003ca0| 69 73 20 6e 75 6d 65 72 | 69 63 61 6c 6c 79 20 73 |is numer|ically s|
|00003cb0| 6d 61 6c 6c 65 72 2e 0a | 58 2e 4f 55 0a 58 5c 66 |maller..|X.OU.X\f|
|00003cc0| 33 67 72 65 61 74 65 72 | 70 5c 66 31 20 5c 28 65 |3greater|p\f1 \(e|
|00003cd0| 6d 20 4f 70 65 72 61 74 | 69 6f 6e 20 28 70 72 65 |m Operat|ion (pre|
|00003ce0| 64 69 63 61 74 65 29 2c | 20 74 77 6f 20 69 6e 70 |dicate),| two inp|
|00003cf0| 75 74 73 2e 20 20 49 6e | 66 69 78 3a 20 5c 66 33 |uts. In|fix: \f3|
|00003d00| 3e 5c 66 31 0a 58 2e 49 | 4e 0a 58 54 68 65 20 6f |>\f1.X.I|N.XThe o|
|00003d10| 75 74 70 75 74 20 6f 66 | 20 74 68 69 73 20 70 72 |utput of| this pr|
|00003d20| 6f 63 65 64 75 72 65 20 | 69 73 20 74 68 65 20 77 |ocedure |is the w|
|00003d30| 6f 72 64 20 5c 66 33 74 | 72 75 65 5c 66 31 20 69 |ord \f3t|rue\f1 i|
|00003d40| 66 20 74 68 65 20 66 69 | 72 73 74 20 69 6e 70 75 |f the fi|rst inpu|
|00003d50| 74 0a 58 69 73 20 6e 75 | 6d 65 72 69 63 61 6c 6c |t.Xis nu|mericall|
|00003d60| 79 20 73 74 72 69 63 74 | 6c 79 20 67 72 65 61 74 |y strict|ly great|
|00003d70| 65 72 20 74 68 61 6e 20 | 74 68 65 20 73 65 63 6f |er than |the seco|
|00003d80| 6e 64 20 69 6e 70 75 74 | 2e 20 20 4f 74 68 65 72 |nd input|. Other|
|00003d90| 77 69 73 65 20 74 68 65 | 0a 58 6f 75 74 70 75 74 |wise the|.Xoutput|
|00003da0| 20 69 73 20 74 68 65 20 | 77 6f 72 64 20 5c 66 33 | is the |word \f3|
|00003db0| 66 61 6c 73 65 5c 66 31 | 2e 0a 58 2e 4f 55 0a 58 |false\f1|..X.OU.X|
|00003dc0| 5c 66 33 6c 65 73 73 70 | 5c 66 31 20 5c 28 65 6d |\f3lessp|\f1 \(em|
|00003dd0| 20 4f 70 65 72 61 74 69 | 6f 6e 20 28 70 72 65 64 | Operati|on (pred|
|00003de0| 69 63 61 74 65 29 2c 20 | 74 77 6f 20 69 6e 70 75 |icate), |two inpu|
|00003df0| 74 73 2e 20 20 49 6e 66 | 69 78 3a 20 5c 66 33 3c |ts. Inf|ix: \f3<|
|00003e00| 5c 66 31 0a 58 2e 49 4e | 0a 58 54 68 65 20 6f 75 |\f1.X.IN|.XThe ou|
|00003e10| 74 70 75 74 20 6f 66 20 | 74 68 69 73 20 70 72 6f |tput of |this pro|
|00003e20| 63 65 64 75 72 65 20 69 | 73 20 74 68 65 20 77 6f |cedure i|s the wo|
|00003e30| 72 64 20 5c 66 33 74 72 | 75 65 5c 66 31 20 69 66 |rd \f3tr|ue\f1 if|
|00003e40| 20 74 68 65 20 66 69 72 | 73 74 20 69 6e 70 75 74 | the fir|st input|
|00003e50| 0a 58 69 73 20 6e 75 6d | 65 72 69 63 61 6c 6c 79 |.Xis num|erically|
|00003e60| 20 73 74 72 69 63 74 6c | 79 20 6c 65 73 73 20 74 | strictl|y less t|
|00003e70| 68 61 6e 20 74 68 65 20 | 73 65 63 6f 6e 64 20 69 |han the |second i|
|00003e80| 6e 70 75 74 2e 20 20 4f | 74 68 65 72 77 69 73 65 |nput. O|therwise|
|00003e90| 20 74 68 65 0a 58 6f 75 | 74 70 75 74 20 69 73 20 | the.Xou|tput is |
|00003ea0| 74 68 65 20 77 6f 72 64 | 20 5c 66 33 66 61 6c 73 |the word| \f3fals|
|00003eb0| 65 5c 66 31 2e 0a 58 2e | 4f 55 0a 58 5c 66 33 65 |e\f1..X.|OU.X\f3e|
|00003ec0| 71 75 61 6c 70 5c 66 31 | 20 5c 28 65 6d 20 4f 70 |qualp\f1| \(em Op|
|00003ed0| 65 72 61 74 69 6f 6e 20 | 28 70 72 65 64 69 63 61 |eration |(predica|
|00003ee0| 74 65 29 2c 20 74 77 6f | 20 69 6e 70 75 74 73 2e |te), two| inputs.|
|00003ef0| 20 20 49 6e 66 69 78 3a | 20 5c 66 33 3d 5c 66 31 | Infix:| \f3=\f1|
|00003f00| 0a 58 2e 49 4e 0a 58 54 | 68 65 20 74 77 6f 20 69 |.X.IN.XT|he two i|
|00003f10| 6e 70 75 74 73 20 74 6f | 20 74 68 69 73 20 70 72 |nputs to| this pr|
|00003f20| 6f 63 65 64 75 72 65 20 | 6d 61 79 20 62 65 20 61 |ocedure |may be a|
|00003f30| 6e 79 20 4c 6f 67 6f 20 | 6f 62 6a 65 63 74 73 2e |ny Logo |objects.|
|00003f40| 20 20 49 66 20 74 68 65 | 79 0a 58 61 72 65 20 6e | If the|y.Xare n|
|00003f50| 75 6d 62 65 72 73 2c 20 | 74 68 65 6e 20 74 68 65 |umbers, |then the|
|00003f60| 20 6f 75 74 70 75 74 20 | 69 73 20 74 68 65 20 77 | output |is the w|
|00003f70| 6f 72 64 20 5c 66 33 74 | 72 75 65 5c 66 31 20 69 |ord \f3t|rue\f1 i|
|00003f80| 66 20 74 68 65 79 20 61 | 72 65 0a 58 6e 75 6d 65 |f they a|re.Xnume|
|00003f90| 72 69 63 61 6c 6c 79 20 | 65 71 75 61 6c 2c 20 5c |rically |equal, \|
|00003fa0| 66 33 66 61 6c 73 65 5c | 66 31 20 69 66 20 74 68 |f3false\|f1 if th|
|00003fb0| 65 79 20 61 72 65 20 6e | 75 6d 65 72 69 63 61 6c |ey are n|umerical|
|00003fc0| 6c 79 20 75 6e 65 71 75 | 61 6c 2e 20 20 49 66 0a |ly unequ|al. If.|
|00003fd0| 58 65 69 74 68 65 72 20 | 69 6e 70 75 74 20 69 73 |Xeither |input is|
|00003fe0| 20 6e 6f 74 20 61 20 6e | 75 6d 62 65 72 2c 20 74 | not a n|umber, t|
|00003ff0| 68 65 6e 20 74 68 65 20 | 6f 75 74 70 75 74 20 69 |hen the |output i|
|00004000| 73 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 66 6f |s the sa|me as fo|
|00004010| 72 20 74 68 65 0a 58 70 | 72 6f 63 65 64 75 72 65 |r the.Xp|rocedure|
|00004020| 20 5c 66 33 69 73 5c 66 | 31 3a 20 69 74 20 69 73 | \f3is\f|1: it is|
|00004030| 20 5c 66 33 74 72 75 65 | 5c 66 31 20 69 66 20 74 | \f3true|\f1 if t|
|00004040| 68 65 20 74 77 6f 20 69 | 6e 70 75 74 73 20 61 72 |he two i|nputs ar|
|00004050| 65 20 69 64 65 6e 74 69 | 63 61 6c 2c 0a 58 5c 66 |e identi|cal,.X\f|
|00004060| 33 66 61 6c 73 65 5c 66 | 31 20 69 66 20 6e 6f 74 |3false\f|1 if not|
|00004070| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |. For e|xample, |
|00004080| 74 68 65 20 6e 75 6d 62 | 65 72 73 20 5c 66 33 32 |the numb|ers \f32|
|00004090| 5c 66 31 20 61 6e 64 20 | 5c 66 33 32 2e 30 5c 66 |\f1 and |\f32.0\f|
|000040a0| 31 20 61 72 65 0a 58 6e | 75 6d 65 72 69 63 61 6c |1 are.Xn|umerical|
|000040b0| 6c 79 20 65 71 75 61 6c | 2c 20 62 75 74 20 6e 6f |ly equal|, but no|
|000040c0| 74 20 69 64 65 6e 74 69 | 63 61 6c 2e 0a 58 2e 4f |t identi|cal..X.O|
|000040d0| 55 0a 58 5c 66 33 6e 75 | 6d 62 65 72 70 5c 66 31 |U.X\f3nu|mberp\f1|
|000040e0| 20 5c 28 65 6d 20 4f 70 | 65 72 61 74 69 6f 6e 20 | \(em Op|eration |
|000040f0| 28 70 72 65 64 69 63 61 | 74 65 29 2c 20 6f 6e 65 |(predica|te), one|
|00004100| 20 69 6e 70 75 74 2e 0a | 58 2e 49 4e 0a 58 54 68 | input..|X.IN.XTh|
|00004110| 65 20 69 6e 70 75 74 20 | 6d 61 79 20 62 65 20 61 |e input |may be a|
|00004120| 6e 79 20 4c 6f 67 6f 20 | 6f 62 6a 65 63 74 2e 20 |ny Logo |object. |
|00004130| 20 54 68 65 20 6f 75 74 | 70 75 74 20 69 73 20 74 | The out|put is t|
|00004140| 68 65 20 77 6f 72 64 20 | 5c 66 33 74 72 75 65 5c |he word |\f3true\|
|00004150| 66 31 20 69 66 0a 58 74 | 68 65 20 69 6e 70 75 74 |f1 if.Xt|he input|
|00004160| 20 69 73 20 61 20 6e 75 | 6d 62 65 72 2c 20 5c 66 | is a nu|mber, \f|
|00004170| 33 66 61 6c 73 65 5c 66 | 31 20 69 66 20 6e 6f 74 |3false\f|1 if not|
|00004180| 2e 0a 58 2e 4f 55 0a 58 | 5c 66 33 7a 65 72 6f 70 |..X.OU.X|\f3zerop|
|00004190| 5c 66 31 20 5c 28 65 6d | 20 4f 70 65 72 61 74 69 |\f1 \(em| Operati|
|000041a0| 6f 6e 20 28 70 72 65 64 | 69 63 61 74 65 29 2c 20 |on (pred|icate), |
|000041b0| 6f 6e 65 20 69 6e 70 75 | 74 2e 0a 58 2e 49 4e 0a |one inpu|t..X.IN.|
|000041c0| 58 54 68 65 20 69 6e 70 | 75 74 20 6d 75 73 74 20 |XThe inp|ut must |
|000041d0| 62 65 20 61 20 6e 75 6d | 62 65 72 2e 20 20 54 68 |be a num|ber. Th|
|000041e0| 65 20 6f 75 74 70 75 74 | 20 69 73 20 74 68 65 20 |e output| is the |
|000041f0| 77 6f 72 64 20 5c 66 33 | 74 72 75 65 5c 66 31 20 |word \f3|true\f1 |
|00004200| 69 66 20 74 68 65 0a 58 | 69 6e 70 75 74 20 69 73 |if the.X|input is|
|00004210| 20 6e 75 6d 65 72 69 63 | 61 6c 6c 79 20 65 71 75 | numeric|ally equ|
|00004220| 61 6c 20 74 6f 20 7a 65 | 72 6f 2c 20 5c 66 33 66 |al to ze|ro, \f3f|
|00004230| 61 6c 73 65 5c 66 31 20 | 6f 74 68 65 72 77 69 73 |alse\f1 |otherwis|
|00004240| 65 2e 0a 58 2e 4f 55 0a | 58 5c 66 33 72 61 6e 64 |e..X.OU.|X\f3rand|
|00004250| 6f 6d 5c 66 31 20 5c 28 | 65 6d 20 4f 70 65 72 61 |om\f1 \(|em Opera|
|00004260| 74 69 6f 6e 2c 20 6f 6e | 65 20 69 6e 70 75 74 2e |tion, on|e input.|
|00004270| 20 20 41 62 62 72 65 76 | 69 61 74 69 6f 6e 3a 20 | Abbrev|iation: |
|00004280| 5c 66 33 72 6e 64 5c 66 | 31 0a 58 2e 49 4e 0a 58 |\f3rnd\f|1.X.IN.X|
|00004290| 54 68 65 20 69 6e 70 75 | 74 20 6d 75 73 74 20 62 |The inpu|t must b|
|000042a0| 65 20 61 20 70 6f 73 69 | 74 69 76 65 20 69 6e 74 |e a posi|tive int|
|000042b0| 65 67 65 72 2e 20 20 54 | 68 65 20 6f 75 74 70 75 |eger. T|he outpu|
|000042c0| 74 20 69 73 20 61 20 72 | 61 6e 64 6f 6d 6c 79 0a |t is a r|andomly.|
|000042d0| 58 73 65 6c 65 63 74 65 | 64 20 69 6e 74 65 67 65 |Xselecte|d intege|
|000042e0| 72 20 62 65 74 77 65 65 | 6e 20 30 20 61 6e 64 20 |r betwee|n 0 and |
|000042f0| 6f 6e 65 20 6c 65 73 73 | 20 74 68 61 6e 20 74 68 |one less| than th|
|00004300| 65 20 69 6e 70 75 74 2e | 0a 58 2e 4f 55 0a 58 5c |e input.|.X.OU.X\|
|00004310| 66 33 73 71 72 74 5c 66 | 31 20 5c 28 65 6d 20 4f |f3sqrt\f|1 \(em O|
|00004320| 70 65 72 61 74 69 6f 6e | 2c 20 6f 6e 65 20 69 6e |peration|, one in|
|00004330| 70 75 74 2e 0a 58 2e 49 | 4e 0a 58 54 68 65 20 69 |put..X.I|N.XThe i|
|00004340| 6e 70 75 74 20 6d 75 73 | 74 20 62 65 20 61 20 6e |nput mus|t be a n|
|00004350| 6f 6e 6e 65 67 61 74 69 | 76 65 20 6e 75 6d 62 65 |onnegati|ve numbe|
|00004360| 72 2e 20 20 54 68 65 20 | 6f 75 74 70 75 74 20 69 |r. The |output i|
|00004370| 73 20 69 74 73 20 73 71 | 75 61 72 65 20 72 6f 6f |s its sq|uare roo|
|00004380| 74 2e 0a 58 2e 4f 55 0a | 58 5c 66 33 70 6f 77 5c |t..X.OU.|X\f3pow\|
|00004390| 66 31 20 5c 28 65 6d 20 | 4f 70 65 72 61 74 69 6f |f1 \(em |Operatio|
|000043a0| 6e 2c 20 74 77 6f 20 69 | 6e 70 75 74 73 2e 0a 58 |n, two i|nputs..X|
|000043b0| 2e 49 4e 0a 58 54 68 65 | 20 69 6e 70 75 74 73 20 |.IN.XThe| inputs |
|000043c0| 6d 75 73 74 20 62 65 20 | 6e 75 6d 62 65 72 73 2e |must be |numbers.|
|000043d0| 20 20 49 66 20 74 68 65 | 20 66 69 72 73 74 20 69 | If the| first i|
|000043e0| 73 20 6e 65 67 61 74 69 | 76 65 2c 20 74 68 65 20 |s negati|ve, the |
|000043f0| 73 65 63 6f 6e 64 20 6d | 75 73 74 0a 58 62 65 20 |second m|ust.Xbe |
|00004400| 61 6e 20 69 6e 74 65 67 | 65 72 2e 20 20 54 68 65 |an integ|er. The|
|00004410| 20 6f 75 74 70 75 74 20 | 69 73 20 74 68 65 20 66 | output |is the f|
|00004420| 69 72 73 74 20 6e 75 6d | 62 65 72 20 72 61 69 73 |irst num|ber rais|
|00004430| 65 64 20 74 6f 20 74 68 | 65 20 70 6f 77 65 72 20 |ed to th|e power |
|00004440| 6f 66 0a 58 74 68 65 20 | 73 65 63 6f 6e 64 20 69 |of.Xthe |second i|
|00004450| 6e 70 75 74 2e 0a 58 2e | 4f 55 0a 58 5c 66 33 73 |nput..X.|OU.X\f3s|
|00004460| 69 6e 5c 66 31 20 5c 28 | 65 6d 20 4f 70 65 72 61 |in\f1 \(|em Opera|
|00004470| 74 69 6f 6e 2c 20 6f 6e | 65 20 69 6e 70 75 74 2e |tion, on|e input.|
|00004480| 0a 58 2e 49 4e 0a 58 54 | 68 65 20 69 6e 70 75 74 |.X.IN.XT|he input|
|00004490| 20 6d 75 73 74 20 62 65 | 20 6e 75 6d 65 72 69 63 | must be| numeric|
|000044a0| 2e 20 20 54 68 65 20 6f | 75 74 70 75 74 20 69 73 |. The o|utput is|
|000044b0| 20 74 68 65 20 73 69 6e | 65 20 6f 66 20 74 68 65 | the sin|e of the|
|000044c0| 20 69 6e 70 75 74 2c 20 | 74 61 6b 65 6e 0a 58 69 | input, |taken.Xi|
|000044d0| 6e 20 64 65 67 72 65 65 | 73 2c 20 6e 6f 74 20 72 |n degree|s, not r|
|000044e0| 61 64 69 61 6e 73 2e 0a | 58 2e 4f 55 0a 58 5c 66 |adians..|X.OU.X\f|
|000044f0| 33 63 6f 73 5c 66 31 20 | 5c 28 65 6d 20 4f 70 65 |3cos\f1 |\(em Ope|
|00004500| 72 61 74 69 6f 6e 2c 20 | 6f 6e 65 20 69 6e 70 75 |ration, |one inpu|
|00004510| 74 2e 0a 58 2e 49 4e 0a | 58 54 68 65 20 69 6e 70 |t..X.IN.|XThe inp|
|00004520| 75 74 20 6d 75 73 74 20 | 62 65 20 6e 75 6d 65 72 |ut must |be numer|
|00004530| 69 63 2e 20 20 54 68 65 | 20 6f 75 74 70 75 74 20 |ic. The| output |
|00004540| 69 73 20 74 68 65 20 63 | 6f 73 69 6e 65 20 6f 66 |is the c|osine of|
|00004550| 20 74 68 65 20 69 6e 70 | 75 74 2c 20 74 61 6b 65 | the inp|ut, take|
|00004560| 6e 0a 58 69 6e 20 64 65 | 67 72 65 65 73 2c 20 6e |n.Xin de|grees, n|
|00004570| 6f 74 20 72 61 64 69 61 | 6e 73 2e 0a 58 2e 4f 55 |ot radia|ns..X.OU|
|00004580| 0a 58 5c 66 33 61 72 63 | 74 61 6e 5c 66 31 20 5c |.X\f3arc|tan\f1 \|
|00004590| 28 65 6d 20 4f 70 65 72 | 61 74 69 6f 6e 2c 20 6f |(em Oper|ation, o|
|000045a0| 6e 65 20 69 6e 70 75 74 | 2e 20 20 41 62 62 72 65 |ne input|. Abbre|
|000045b0| 76 69 61 74 69 6f 6e 3a | 20 5c 66 33 61 74 61 6e |viation:| \f3atan|
|000045c0| 5c 66 31 0a 58 2e 49 4e | 0a 58 54 68 65 20 69 6e |\f1.X.IN|.XThe in|
|000045d0| 70 75 74 20 6d 75 73 74 | 20 62 65 20 6e 75 6d 65 |put must| be nume|
|000045e0| 72 69 63 2e 20 20 54 68 | 65 20 6f 75 74 70 75 74 |ric. Th|e output|
|000045f0| 20 69 73 20 74 68 65 20 | 61 72 63 74 61 6e 67 65 | is the |arctange|
|00004600| 6e 74 2c 20 69 6e 20 64 | 65 67 72 65 65 73 2c 20 |nt, in d|egrees, |
|00004610| 6f 66 0a 58 74 68 65 20 | 69 6e 70 75 74 2e 0a 58 |of.Xthe |input..X|
|00004620| 2e 4f 55 0a 58 2e 74 69 | 20 2b 35 0a 58 2e 55 42 |.OU.X.ti| +5.X.UB|
|00004630| 20 22 50 72 69 6d 69 74 | 69 76 65 20 70 72 6f 63 | "Primit|ive proc|
|00004640| 65 64 75 72 65 73 20 66 | 6f 72 20 63 6f 6e 64 69 |edures f|or condi|
|00004650| 74 69 6f 6e 61 6c 20 65 | 78 65 63 75 74 69 6f 6e |tional e|xecution|
|00004660| 2e 22 0a 58 54 68 65 20 | 70 72 65 64 69 63 61 74 |.".XThe |predicat|
|00004670| 65 73 0a 58 28 6c 69 6b | 65 20 5c 66 33 77 6f 72 |es.X(lik|e \f3wor|
|00004680| 64 70 5c 66 31 29 20 77 | 68 69 63 68 20 77 65 27 |dp\f1) w|hich we'|
|00004690| 76 65 20 6d 65 6e 74 69 | 6f 6e 65 64 20 61 62 6f |ve menti|oned abo|
|000046a0| 76 65 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 74 |ve can b|e used t|
|000046b0| 6f 20 63 61 72 72 79 20 | 6f 75 74 0a 58 73 6f 6d |o carry |out.Xsom|
|000046c0| 65 20 63 6f 6d 6d 61 6e | 64 20 6f 6e 6c 79 20 69 |e comman|d only i|
|000046d0| 66 20 61 20 63 6f 6e 64 | 69 74 69 6f 6e 20 69 73 |f a cond|ition is|
|000046e0| 20 6d 65 74 2e 20 20 54 | 68 65 20 62 61 73 69 63 | met. T|he basic|
|000046f0| 20 63 6f 6d 6d 61 6e 64 | 20 66 6f 72 20 74 68 65 | command| for the|
|00004700| 0a 58 70 75 72 70 6f 73 | 65 20 69 73 20 5c 66 33 |.Xpurpos|e is \f3|
|00004710| 69 66 5c 66 31 3a 0a 58 | 2e 73 70 20 31 0a 58 5c |if\f1:.X|.sp 1.X\|
|00004720| 66 33 69 66 5c 66 31 20 | 5c 28 65 6d 20 43 6f 6d |f3if\f1 |\(em Com|
|00004730| 6d 61 6e 64 20 6f 72 20 | 6f 70 65 72 61 74 69 6f |mand or |operatio|
|00004740| 6e 2c 20 74 77 6f 20 6f | 72 20 74 68 72 65 65 20 |n, two o|r three |
|00004750| 69 6e 70 75 74 73 2e 0a | 58 2e 49 4e 0a 58 54 68 |inputs..|X.IN.XTh|
|00004760| 65 20 66 69 72 73 74 20 | 69 6e 70 75 74 20 74 6f |e first |input to|
|00004770| 20 74 68 65 20 5c 66 33 | 69 66 5c 66 31 20 70 72 | the \f3|if\f1 pr|
|00004780| 6f 63 65 64 75 72 65 20 | 6d 75 73 74 20 62 65 20 |ocedure |must be |
|00004790| 65 69 74 68 65 72 20 74 | 68 65 20 77 6f 72 64 20 |either t|he word |
|000047a0| 5c 66 33 74 72 75 65 5c | 66 31 20 6f 72 0a 58 74 |\f3true\|f1 or.Xt|
|000047b0| 68 65 20 77 6f 72 64 20 | 5c 66 33 66 61 6c 73 65 |he word |\f3false|
|000047c0| 5c 66 31 2e 20 20 54 79 | 70 69 63 61 6c 6c 79 2c |\f1. Ty|pically,|
|000047d0| 20 69 74 20 69 73 20 74 | 68 65 20 6f 75 74 70 75 | it is t|he outpu|
|000047e0| 74 20 66 72 6f 6d 20 61 | 20 70 72 65 64 69 63 61 |t from a| predica|
|000047f0| 74 65 2e 20 20 54 68 65 | 20 73 65 63 6f 6e 64 0a |te. The| second.|
|00004800| 58 61 6e 64 20 28 6f 70 | 74 69 6f 6e 61 6c 29 20 |Xand (op|tional) |
|00004810| 74 68 69 72 64 20 69 6e | 70 75 74 73 20 61 72 65 |third in|puts are|
|00004820| 20 6c 69 73 74 73 20 63 | 6f 6e 74 61 69 6e 69 6e | lists c|ontainin|
|00004830| 67 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 6c 69 |g instru|ction li|
|00004840| 6e 65 73 2e 20 20 54 68 | 65 20 73 65 63 6f 6e 64 |nes. Th|e second|
|00004850| 0a 58 69 6e 70 75 74 20 | 69 73 20 65 78 65 63 75 |.Xinput |is execu|
|00004860| 74 65 64 20 69 66 20 74 | 68 65 20 66 69 72 73 74 |ted if t|he first|
|00004870| 20 69 6e 70 75 74 20 69 | 73 20 5c 66 33 74 72 75 | input i|s \f3tru|
|00004880| 65 5c 66 31 2e 20 20 54 | 68 65 20 74 68 69 72 64 |e\f1. T|he third|
|00004890| 20 69 6e 70 75 74 2c 20 | 69 66 20 61 6e 79 2c 0a | input, |if any,.|
|000048a0| 58 69 73 20 65 78 65 63 | 75 74 65 64 20 69 66 20 |Xis exec|uted if |
|000048b0| 74 68 65 20 66 69 72 73 | 74 20 69 6e 70 75 74 20 |the firs|t input |
|000048c0| 69 73 20 5c 66 33 66 61 | 6c 73 65 5c 66 31 3a 0a |is \f3fa|lse\f1:.|
|000048d0| 58 2e 73 70 20 31 0a 58 | 2e 6e 66 0a 58 5c 66 33 |X.sp 1.X|.nf.X\f3|
|000048e0| 74 6f 20 67 72 65 65 74 | 20 3a 70 65 72 73 6f 6e |to greet| :person|
|000048f0| 0a 58 69 66 20 65 71 75 | 61 6c 70 20 3a 70 65 72 |.Xif equ|alp :per|
|00004900| 73 6f 6e 20 5b 52 6f 6e | 61 6c 64 20 52 65 61 67 |son [Ron|ald Reag|
|00004910| 61 6e 5d 20 5b 70 72 69 | 6e 74 20 5b 48 69 2c 20 |an] [pri|nt [Hi, |
|00004920| 74 75 72 6b 65 79 21 5d | 5d 20 5c 5c 0a 58 09 5b |turkey!]|] \\.X.[|
|00004930| 70 72 69 6e 74 20 73 65 | 6e 74 65 6e 63 65 20 22 |print se|ntence "|
|00004940| 48 69 2c 20 3a 70 65 72 | 73 6f 6e 5d 0a 58 65 6e |Hi, :per|son].Xen|
|00004950| 64 5c 66 31 0a 58 2e 66 | 69 0a 58 2e 73 70 20 31 |d\f1.X.f|i.X.sp 1|
|00004960| 0a 58 49 6e 20 74 68 61 | 74 20 65 78 61 6d 70 6c |.XIn tha|t exampl|
|00004970| 65 2c 20 74 68 65 20 66 | 69 72 73 74 20 69 6e 70 |e, the f|irst inp|
|00004980| 75 74 20 74 6f 20 5c 66 | 33 69 66 5c 66 31 20 69 |ut to \f|3if\f1 i|
|00004990| 73 20 74 68 65 20 6f 75 | 74 70 75 74 20 66 72 6f |s the ou|tput fro|
|000049a0| 6d 20 74 68 65 20 65 78 | 70 72 65 73 73 69 6f 6e |m the ex|pression|
|000049b0| 0a 58 2e 62 72 0a 58 5c | 66 33 65 71 75 61 6c 70 |.X.br.X\|f3equalp|
|000049c0| 20 3a 70 65 72 73 6f 6e | 20 5b 52 6f 6e 61 6c 64 | :person| [Ronald|
|000049d0| 20 52 65 61 67 61 6e 5d | 5c 66 31 2e 0a 58 2e 73 | Reagan]|\f1..X.s|
|000049e0| 70 20 31 0a 58 54 68 65 | 20 5c 66 33 69 66 5c 66 |p 1.XThe| \f3if\f|
|000049f0| 31 20 70 72 6f 63 65 64 | 75 72 65 20 63 61 6e 20 |1 proced|ure can |
|00004a00| 62 65 20 75 73 65 64 20 | 61 73 20 61 6e 20 6f 70 |be used |as an op|
|00004a10| 65 72 61 74 69 6f 6e 2c | 20 70 72 6f 64 75 63 69 |eration,| produci|
|00004a20| 6e 67 20 61 20 76 61 6c | 75 65 2e 20 20 49 6e 20 |ng a val|ue. In |
|00004a30| 74 68 69 73 0a 58 63 61 | 73 65 2c 20 74 68 65 20 |this.Xca|se, the |
|00004a40| 74 68 69 72 64 20 69 6e | 70 75 74 20 69 73 20 72 |third in|put is r|
|00004a50| 65 71 75 69 72 65 64 3a | 0a 58 2e 73 70 20 31 0a |equired:|.X.sp 1.|
|00004a60| 58 2e 6e 66 0a 58 5c 66 | 33 70 72 69 6e 74 20 69 |X.nf.X\f|3print i|
|00004a70| 66 20 65 71 75 61 6c 70 | 20 3a 70 65 72 73 6f 6e |f equalp| :person|
|00004a80| 20 22 52 65 61 67 61 6e | 20 5b 22 4c 6f 73 65 72 | "Reagan| ["Loser|
|00004a90| 5d 20 5b 22 57 69 6e 6e | 65 72 5d 5c 66 31 0a 58 |] ["Winn|er]\f1.X|
|00004aa0| 2e 66 69 0a 58 2e 4f 55 | 0a 58 5c 66 33 74 65 73 |.fi.X.OU|.X\f3tes|
|00004ab0| 74 5c 66 31 20 5c 28 65 | 6d 20 43 6f 6d 6d 61 6e |t\f1 \(e|m Comman|
|00004ac0| 64 2c 20 6f 6e 65 20 69 | 6e 70 75 74 2e 0a 58 2e |d, one i|nput..X.|
|00004ad0| 49 4e 0a 58 54 68 65 20 | 69 6e 70 75 74 20 6d 75 |IN.XThe |input mu|
|00004ae0| 73 74 20 62 65 20 74 68 | 65 20 77 6f 72 64 20 5c |st be th|e word \|
|00004af0| 66 33 74 72 75 65 5c 66 | 31 20 6f 72 20 74 68 65 |f3true\f|1 or the|
|00004b00| 20 77 6f 72 64 20 5c 66 | 33 66 61 6c 73 65 5c 66 | word \f|3false\f|
|00004b10| 31 2e 20 20 54 68 65 20 | 63 6f 6d 6d 61 6e 64 0a |1. The |command.|
|00004b20| 58 72 65 6d 65 6d 62 65 | 72 73 20 69 74 73 20 69 |Xremembe|rs its i|
|00004b30| 6e 70 75 74 20 66 6f 72 | 20 75 73 65 20 69 6e 20 |nput for| use in |
|00004b40| 61 20 6c 61 74 65 72 20 | 5c 66 33 69 66 74 72 75 |a later |\f3iftru|
|00004b50| 65 5c 66 31 20 6f 72 20 | 5c 66 33 69 66 66 61 6c |e\f1 or |\f3iffal|
|00004b60| 73 65 5c 66 31 0a 58 63 | 6f 6d 6d 61 6e 64 2e 20 |se\f1.Xc|ommand. |
|00004b70| 20 54 68 69 73 20 69 73 | 20 61 6e 20 61 6c 74 65 | This is| an alte|
|00004b80| 72 6e 61 74 69 76 65 20 | 74 6f 20 5c 66 33 69 66 |rnative |to \f3if|
|00004b90| 5c 66 31 20 77 68 69 63 | 68 20 69 73 20 75 73 65 |\f1 whic|h is use|
|00004ba0| 66 75 6c 20 69 66 20 73 | 65 76 65 72 61 6c 0a 58 |ful if s|everal.X|
|00004bb0| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 20 61 72 65 |instruct|ions are|
|00004bc0| 20 74 6f 20 62 65 20 6d | 61 64 65 20 63 6f 6e 64 | to be m|ade cond|
|00004bd0| 69 74 69 6f 6e 61 6c 20 | 6f 6e 20 74 68 65 20 73 |itional |on the s|
|00004be0| 61 6d 65 20 63 6f 6e 64 | 69 74 69 6f 6e 2e 20 20 |ame cond|ition. |
|00004bf0| 54 68 65 0a 58 72 65 6d | 65 6d 62 65 72 65 64 20 |The.Xrem|embered |
|00004c00| 74 72 75 74 68 20 76 61 | 6c 75 65 20 69 73 20 6c |truth va|lue is l|
|00004c10| 6f 63 61 6c 20 74 6f 20 | 74 68 65 20 63 75 72 72 |ocal to |the curr|
|00004c20| 65 6e 74 20 70 72 6f 63 | 65 64 75 72 65 2c 20 69 |ent proc|edure, i|
|00004c30| 66 20 61 6e 79 2e 0a 58 | 2e 4f 55 0a 58 5c 66 33 |f any..X|.OU.X\f3|
|00004c40| 69 66 74 72 75 65 5c 66 | 31 20 5c 28 65 6d 20 43 |iftrue\f|1 \(em C|
|00004c50| 6f 6d 6d 61 6e 64 2c 20 | 6f 6e 65 20 69 6e 70 75 |ommand, |one inpu|
|00004c60| 74 2e 20 20 41 62 62 72 | 65 76 69 61 74 69 6f 6e |t. Abbr|eviation|
|00004c70| 3a 20 5c 66 33 69 66 74 | 5c 66 31 0a 58 2e 49 4e |: \f3ift|\f1.X.IN|
|00004c80| 0a 58 54 68 65 20 69 6e | 70 75 74 20 6d 75 73 74 |.XThe in|put must|
|00004c90| 20 62 65 20 61 6e 20 69 | 6e 73 74 72 75 63 74 69 | be an i|nstructi|
|00004ca0| 6f 6e 20 6c 69 73 74 2e | 20 20 49 74 20 69 73 20 |on list.| It is |
|00004cb0| 72 75 6e 20 69 66 20 74 | 68 65 20 6d 6f 73 74 20 |run if t|he most |
|00004cc0| 72 65 63 65 6e 74 0a 58 | 5c 66 33 74 65 73 74 5c |recent.X|\f3test\|
|00004cd0| 66 31 20 63 6f 6d 6d 61 | 6e 64 20 73 61 76 65 64 |f1 comma|nd saved|
|00004ce0| 20 61 20 5c 66 33 74 72 | 75 65 5c 66 31 20 76 61 | a \f3tr|ue\f1 va|
|00004cf0| 6c 75 65 2e 0a 58 2e 4f | 55 0a 58 5c 66 33 69 66 |lue..X.O|U.X\f3if|
|00004d00| 66 61 6c 73 65 5c 66 31 | 20 5c 28 65 6d 20 43 6f |false\f1| \(em Co|
|00004d10| 6d 6d 61 6e 64 2c 20 6f | 6e 65 20 69 6e 70 75 74 |mmand, o|ne input|
|00004d20| 2e 20 20 41 62 62 72 65 | 76 69 61 74 69 6f 6e 3a |. Abbre|viation:|
|00004d30| 20 5c 66 33 69 66 66 5c | 66 31 0a 58 2e 49 4e 0a | \f3iff\|f1.X.IN.|
|00004d40| 58 54 68 65 20 69 6e 70 | 75 74 20 6d 75 73 74 20 |XThe inp|ut must |
|00004d50| 62 65 20 61 6e 20 69 6e | 73 74 72 75 63 74 69 6f |be an in|structio|
|00004d60| 6e 20 6c 69 73 74 2e 20 | 20 49 74 20 69 73 20 72 |n list. | It is r|
|00004d70| 75 6e 20 69 66 20 74 68 | 65 20 6d 6f 73 74 20 72 |un if th|e most r|
|00004d80| 65 63 65 6e 74 0a 58 5c | 66 33 74 65 73 74 5c 66 |ecent.X\|f3test\f|
|00004d90| 31 20 63 6f 6d 6d 61 6e | 64 20 73 61 76 65 64 20 |1 comman|d saved |
|00004da0| 61 20 5c 66 33 66 61 6c | 73 65 5c 66 31 20 76 61 |a \f3fal|se\f1 va|
|00004db0| 6c 75 65 2e 0a 58 2e 4f | 55 0a 58 5c 66 33 62 6f |lue..X.O|U.X\f3bo|
|00004dc0| 74 68 5c 66 31 20 5c 28 | 65 6d 20 4f 70 65 72 61 |th\f1 \(|em Opera|
|00004dd0| 74 69 6f 6e 20 28 70 72 | 65 64 69 63 61 74 65 29 |tion (pr|edicate)|
|00004de0| 2c 20 74 77 6f 20 69 6e | 70 75 74 73 2e 20 20 41 |, two in|puts. A|
|00004df0| 62 62 72 65 76 69 61 74 | 69 6f 6e 3a 20 5c 66 33 |bbreviat|ion: \f3|
|00004e00| 61 6e 64 5c 66 31 0a 58 | 2e 49 4e 0a 58 54 68 65 |and\f1.X|.IN.XThe|
|00004e10| 20 74 77 6f 20 69 6e 70 | 75 74 73 20 6d 75 73 74 | two inp|uts must|
|00004e20| 20 62 6f 74 68 20 62 65 | 20 65 69 74 68 65 72 20 | both be| either |
|00004e30| 5c 66 33 74 72 75 65 5c | 66 31 20 6f 72 20 5c 66 |\f3true\|f1 or \f|
|00004e40| 33 66 61 6c 73 65 5c 66 | 31 2e 20 20 54 68 65 20 |3false\f|1. The |
|00004e50| 6f 75 74 70 75 74 0a 58 | 69 73 20 5c 66 33 74 72 |output.X|is \f3tr|
|00004e60| 75 65 5c 66 31 20 69 66 | 20 62 6f 74 68 20 69 6e |ue\f1 if| both in|
|00004e70| 70 75 74 73 20 61 72 65 | 20 5c 66 33 74 72 75 65 |puts are| \f3true|
|00004e80| 5c 66 31 3b 20 6f 74 68 | 65 72 77 69 73 65 20 74 |\f1; oth|erwise t|
|00004e90| 68 65 20 6f 75 74 70 75 | 74 20 69 73 0a 58 5c 66 |he outpu|t is.X\f|
|00004ea0| 33 66 61 6c 73 65 5c 66 | 31 2e 0a 58 2e 4f 55 0a |3false\f|1..X.OU.|
|00004eb0| 58 5c 66 33 65 69 74 68 | 65 72 5c 66 31 20 5c 28 |X\f3eith|er\f1 \(|
|00004ec0| 65 6d 20 4f 70 65 72 61 | 74 69 6f 6e 20 28 70 72 |em Opera|tion (pr|
|00004ed0| 65 64 69 63 61 74 65 29 | 2c 20 74 77 6f 20 69 6e |edicate)|, two in|
|00004ee0| 70 75 74 73 2e 20 20 41 | 62 62 72 65 76 69 61 74 |puts. A|bbreviat|
|00004ef0| 69 6f 6e 3a 20 5c 66 33 | 6f 72 5c 66 31 0a 58 2e |ion: \f3|or\f1.X.|
|00004f00| 49 4e 0a 58 54 68 65 20 | 74 77 6f 20 69 6e 70 75 |IN.XThe |two inpu|
|00004f10| 74 73 20 6d 75 73 74 20 | 62 65 20 65 69 74 68 65 |ts must |be eithe|
|00004f20| 72 20 5c 66 33 74 72 75 | 65 5c 66 31 20 6f 72 20 |r \f3tru|e\f1 or |
|00004f30| 5c 66 33 66 61 6c 73 65 | 5c 66 31 2e 20 20 54 68 |\f3false|\f1. Th|
|00004f40| 65 20 6f 75 74 70 75 74 | 0a 58 69 73 20 5c 66 33 |e output|.Xis \f3|
|00004f50| 74 72 75 65 5c 66 31 20 | 69 66 20 61 74 20 6c 65 |true\f1 |if at le|
|00004f60| 61 73 74 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 69 |ast one |of the i|
|00004f70| 6e 70 75 74 73 20 69 73 | 20 5c 66 33 74 72 75 65 |nputs is| \f3true|
|00004f80| 5c 66 31 3b 20 6f 74 68 | 65 72 77 69 73 65 0a 58 |\f1; oth|erwise.X|
|00004f90| 74 68 65 20 6f 75 74 70 | 75 74 20 69 73 20 5c 66 |the outp|ut is \f|
|00004fa0| 33 66 61 6c 73 65 5c 66 | 31 2e 0a 58 2e 4f 55 0a |3false\f|1..X.OU.|
|00004fb0| 58 5c 66 33 6e 6f 74 5c | 66 31 20 5c 28 65 6d 20 |X\f3not\|f1 \(em |
|00004fc0| 4f 70 65 72 61 74 69 6f | 6e 20 28 70 72 65 64 69 |Operatio|n (predi|
|00004fd0| 63 61 74 65 29 2c 20 6f | 6e 65 20 69 6e 70 75 74 |cate), o|ne input|
|00004fe0| 2e 0a 58 2e 49 4e 0a 58 | 54 68 65 20 69 6e 70 75 |..X.IN.X|The inpu|
|00004ff0| 74 20 6d 75 73 74 20 62 | 65 20 65 69 74 68 65 72 |t must b|e either|
|00005000| 20 5c 66 33 74 72 75 65 | 5c 66 31 20 6f 72 20 5c | \f3true|\f1 or \|
|00005010| 66 33 66 61 6c 73 65 5c | 66 31 2e 20 20 54 68 65 |f3false\|f1. The|
|00005020| 20 6f 75 74 70 75 74 20 | 69 73 0a 58 5c 66 33 74 | output |is.X\f3t|
|00005030| 72 75 65 5c 66 31 20 69 | 66 20 74 68 65 20 69 6e |rue\f1 i|f the in|
|00005040| 70 75 74 20 69 73 20 5c | 66 33 66 61 6c 73 65 5c |put is \|f3false\|
|00005050| 66 31 2c 20 61 6e 64 20 | 76 69 63 65 20 76 65 72 |f1, and |vice ver|
|00005060| 73 61 2e 0a 58 2e 4f 55 | 0a 58 2e 74 69 20 2b 35 |sa..X.OU|.X.ti +5|
|00005070| 0a 58 2e 55 42 20 22 50 | 72 69 6d 69 74 69 76 65 |.X.UB "P|rimitive|
|00005080| 20 70 72 6f 63 65 64 75 | 72 65 73 20 66 6f 72 20 | procedu|res for |
|00005090| 66 69 6c 65 20 69 6e 70 | 75 74 20 61 6e 64 20 6f |file inp|ut and o|
|000050a0| 75 74 70 75 74 2e 22 0a | 58 49 6e 20 74 68 65 20 |utput.".|XIn the |
|000050b0| 55 6e 69 78 0a 58 6f 70 | 65 72 61 74 69 6e 67 20 |Unix.Xop|erating |
|000050c0| 73 79 73 74 65 6d 2c 20 | 74 68 65 72 65 20 61 72 |system, |there ar|
|000050d0| 65 20 74 77 6f 20 73 74 | 65 70 73 20 69 6e 20 72 |e two st|eps in r|
|000050e0| 65 61 64 69 6e 67 20 6f | 72 20 77 72 69 74 69 6e |eading o|r writin|
|000050f0| 67 20 66 69 6c 65 73 3a | 20 66 69 72 73 74 2c 0a |g files:| first,.|
|00005100| 58 74 68 65 20 66 69 6c | 65 20 6d 75 73 74 20 62 |Xthe fil|e must b|
|00005110| 65 20 5c 66 32 6f 70 65 | 6e 65 64 5c 66 31 2c 20 |e \f2ope|ned\f1, |
|00005120| 74 68 65 72 65 62 79 20 | 61 73 73 6f 63 69 61 74 |thereby |associat|
|00005130| 69 6e 67 20 61 20 22 66 | 69 6c 65 20 64 65 73 63 |ing a "f|ile desc|
|00005140| 72 69 70 74 6f 72 22 0a | 58 28 61 6e 20 69 6e 74 |riptor".|X(an int|
|00005150| 65 67 65 72 29 20 77 69 | 74 68 20 74 68 65 20 66 |eger) wi|th the f|
|00005160| 69 6c 65 20 6e 61 6d 65 | 3b 20 73 65 63 6f 6e 64 |ile name|; second|
|00005170| 2c 20 74 68 65 20 66 69 | 6c 65 20 64 65 73 63 72 |, the fi|le descr|
|00005180| 69 70 74 6f 72 20 69 73 | 20 75 73 65 64 0a 58 74 |iptor is| used.Xt|
|00005190| 6f 20 73 70 65 63 69 66 | 79 20 74 68 65 20 66 69 |o specif|y the fi|
|000051a0| 6c 65 20 66 6f 72 20 65 | 61 63 68 20 72 65 61 64 |le for e|ach read|
|000051b0| 20 6f 72 20 77 72 69 74 | 65 20 6f 70 65 72 61 74 | or writ|e operat|
|000051c0| 69 6f 6e 2e 20 20 4c 6f | 67 6f 20 68 61 73 0a 58 |ion. Lo|go has.X|
|000051d0| 70 72 69 6d 69 74 69 76 | 65 20 70 72 6f 63 65 64 |primitiv|e proced|
|000051e0| 75 72 65 73 20 66 6f 72 | 20 65 61 63 68 20 6f 66 |ures for| each of|
|000051f0| 20 74 68 65 73 65 20 73 | 74 65 70 73 2e 0a 58 2e | these s|teps..X.|
|00005200| 73 70 20 31 0a 58 5c 66 | 33 6f 70 65 6e 72 65 61 |sp 1.X\f|3openrea|
|00005210| 64 5c 66 31 20 5c 28 65 | 6d 20 4f 70 65 72 61 74 |d\f1 \(e|m Operat|
|00005220| 69 6f 6e 2c 20 6f 6e 65 | 20 69 6e 70 75 74 2e 20 |ion, one| input. |
|00005230| 20 41 62 62 72 65 76 69 | 61 74 69 6f 6e 3a 20 5c | Abbrevi|ation: \|
|00005240| 66 33 6f 70 65 6e 72 5c | 66 31 0a 58 2e 49 4e 0a |f3openr\|f1.X.IN.|
|00005250| 58 54 68 65 20 69 6e 70 | 75 74 20 74 6f 20 74 68 |XThe inp|ut to th|
|00005260| 69 73 20 70 72 6f 63 65 | 64 75 72 65 20 69 73 20 |is proce|dure is |
|00005270| 61 20 77 6f 72 64 2c 20 | 77 68 69 63 68 20 6d 75 |a word, |which mu|
|00005280| 73 74 20 62 65 20 61 20 | 55 6e 69 78 20 66 69 6c |st be a |Unix fil|
|00005290| 65 6e 61 6d 65 2e 20 20 | 49 74 0a 58 63 61 6e 20 |ename. |It.Xcan |
|000052a0| 63 6f 6e 74 61 69 6e 20 | 73 6c 61 73 68 65 73 20 |contain |slashes |
|000052b0| 74 6f 20 69 6e 64 69 63 | 61 74 65 20 64 69 72 65 |to indic|ate dire|
|000052c0| 63 74 6f 72 79 20 6e 61 | 6d 65 73 2e 20 20 49 66 |ctory na|mes. If|
|000052d0| 20 74 68 65 20 66 69 6c | 65 20 63 61 6e 20 62 65 | the fil|e can be|
|000052e0| 0a 58 6f 70 65 6e 65 64 | 20 66 6f 72 20 72 65 61 |.Xopened| for rea|
|000052f0| 64 69 6e 67 2c 20 74 68 | 65 20 6f 75 74 70 75 74 |ding, th|e output|
|00005300| 20 66 72 6f 6d 20 74 68 | 65 20 70 72 6f 63 65 64 | from th|e proced|
|00005310| 75 72 65 20 69 73 20 61 | 20 66 69 6c 65 20 64 65 |ure is a| file de|
|00005320| 73 63 72 69 70 74 6f 72 | 2c 0a 58 77 68 69 63 68 |scriptor|,.Xwhich|
|00005330| 20 73 68 6f 75 6c 64 20 | 62 65 20 73 74 6f 72 65 | should |be store|
|00005340| 64 20 69 6e 20 61 20 76 | 61 72 69 61 62 6c 65 20 |d in a v|ariable |
|00005350| 66 6f 72 20 75 73 65 20 | 69 6e 20 72 65 61 64 69 |for use |in readi|
|00005360| 6e 67 20 74 68 65 20 66 | 69 6c 65 2e 20 20 49 66 |ng the f|ile. If|
|00005370| 20 74 68 65 0a 58 66 69 | 6c 65 20 63 61 6e 6e 6f | the.Xfi|le canno|
|00005380| 74 20 62 65 20 6f 70 65 | 6e 65 64 2c 20 61 6e 20 |t be ope|ned, an |
|00005390| 65 72 72 6f 72 20 72 65 | 73 75 6c 74 73 2e 0a 58 |error re|sults..X|
|000053a0| 2e 4f 55 0a 58 5c 66 33 | 66 69 6c 65 72 65 61 64 |.OU.X\f3|fileread|
|000053b0| 5c 66 31 20 5c 28 65 6d | 20 4f 70 65 72 61 74 69 |\f1 \(em| Operati|
|000053c0| 6f 6e 2c 20 6f 6e 65 20 | 69 6e 70 75 74 2e 20 20 |on, one |input. |
|000053d0| 41 62 62 72 65 76 69 61 | 74 69 6f 6e 3a 20 5c 66 |Abbrevia|tion: \f|
|000053e0| 33 66 69 72 64 5c 66 31 | 0a 58 2e 49 4e 0a 58 54 |3fird\f1|.X.IN.XT|
|000053f0| 68 65 20 69 6e 70 75 74 | 20 6d 75 73 74 20 62 65 |he input| must be|
|00005400| 20 61 20 66 69 6c 65 20 | 64 65 73 63 72 69 70 74 | a file |descript|
|00005410| 6f 72 2c 20 70 72 65 76 | 69 6f 75 73 6c 79 20 6f |or, prev|iously o|
|00005420| 75 74 70 75 74 20 62 79 | 20 5c 66 33 6f 70 65 6e |utput by| \f3open|
|00005430| 72 65 61 64 5c 66 31 2e | 20 20 54 68 65 0a 58 70 |read\f1.| The.Xp|
|00005440| 72 6f 63 65 64 75 72 65 | 20 72 65 61 64 73 20 6f |rocedure| reads o|
|00005450| 6e 65 20 6c 69 6e 65 20 | 66 72 6f 6d 20 74 68 65 |ne line |from the|
|00005460| 20 66 69 6c 65 2e 20 20 | 54 68 65 20 6f 75 74 70 | file. |The outp|
|00005470| 75 74 20 69 73 20 74 68 | 65 20 6c 69 6e 65 2c 20 |ut is th|e line, |
|00005480| 69 6e 20 74 68 65 20 66 | 6f 72 6d 0a 58 6f 66 20 |in the f|orm.Xof |
|00005490| 61 20 6c 69 73 74 2e 20 | 20 28 54 68 61 74 20 69 |a list. | (That i|
|000054a0| 73 2c 20 74 68 65 20 6f | 75 74 70 75 74 20 69 73 |s, the o|utput is|
|000054b0| 20 74 68 65 20 66 69 6c | 65 20 6c 69 6e 65 20 61 | the fil|e line a|
|000054c0| 73 20 69 66 20 65 6e 63 | 6c 6f 73 65 64 20 69 6e |s if enc|losed in|
|000054d0| 20 73 71 75 61 72 65 0a | 58 62 72 61 63 6b 65 74 | square.|Xbracket|
|000054e0| 73 20 69 6e 20 61 20 70 | 72 6f 67 72 61 6d 2e 29 |s in a p|rogram.)|
|000054f0| 20 20 49 66 20 74 68 65 | 20 65 6e 64 20 6f 66 20 | If the| end of |
|00005500| 74 68 65 20 66 69 6c 65 | 20 68 61 73 20 62 65 65 |the file| has bee|
|00005510| 6e 20 72 65 61 63 68 65 | 64 2c 20 74 68 65 20 6f |n reache|d, the o|
|00005520| 75 74 70 75 74 0a 58 69 | 73 20 74 68 65 20 65 6d |utput.Xi|s the em|
|00005530| 70 74 79 20 77 6f 72 64 | 2e 20 20 49 66 20 74 68 |pty word|. If th|
|00005540| 65 20 66 69 6c 65 20 6c | 69 6e 65 20 63 6f 6e 74 |e file l|ine cont|
|00005550| 61 69 6e 73 20 6d 69 73 | 6d 61 74 63 68 65 64 20 |ains mis|matched |
|00005560| 62 72 61 63 6b 65 74 73 | 2c 20 74 72 6f 75 62 6c |brackets|, troubl|
|00005570| 65 0a 58 6d 61 79 20 72 | 65 73 75 6c 74 2e 0a 58 |e.Xmay r|esult..X|
|00005580| 2e 4f 55 0a 58 5c 66 33 | 66 69 6c 65 77 6f 72 64 |.OU.X\f3|fileword|
|00005590| 5c 66 31 20 5c 28 65 6d | 20 4f 70 65 72 61 74 69 |\f1 \(em| Operati|
|000055a0| 6f 6e 2c 20 6f 6e 65 20 | 69 6e 70 75 74 2e 20 20 |on, one |input. |
|000055b0| 41 62 62 72 65 76 69 61 | 74 69 6f 6e 3a 20 5c 66 |Abbrevia|tion: \f|
|000055c0| 33 66 69 77 64 5c 66 31 | 0a 58 2e 49 4e 0a 58 54 |3fiwd\f1|.X.IN.XT|
|000055d0| 68 65 20 69 6e 70 75 74 | 20 6d 75 73 74 20 62 65 |he input| must be|
|000055e0| 20 61 20 66 69 6c 65 20 | 64 65 73 63 72 69 70 74 | a file |descript|
|000055f0| 6f 72 2c 20 6f 70 65 6e | 20 66 6f 72 20 72 65 61 |or, open| for rea|
|00005600| 64 69 6e 67 2e 20 20 54 | 68 65 20 70 72 6f 63 65 |ding. T|he proce|
|00005610| 64 75 72 65 0a 58 72 65 | 61 64 73 20 6f 6e 65 20 |dure.Xre|ads one |
|00005620| 6c 69 6e 65 20 66 72 6f | 6d 20 74 68 65 20 66 69 |line fro|m the fi|
|00005630| 6c 65 2e 20 20 54 68 65 | 20 6f 75 74 70 75 74 20 |le. The| output |
|00005640| 69 73 20 74 68 61 74 20 | 6c 69 6e 65 2c 20 69 6e |is that |line, in|
|00005650| 20 74 68 65 20 66 6f 72 | 6d 20 6f 66 0a 58 61 20 | the for|m of.Xa |
|00005660| 73 69 6e 67 6c 65 20 77 | 6f 72 64 2c 20 69 6e 63 |single w|ord, inc|
|00005670| 6c 75 64 69 6e 67 20 73 | 70 61 63 65 73 20 61 6e |luding s|paces an|
|00005680| 64 20 70 75 6e 63 74 75 | 61 74 69 6f 6e 20 63 68 |d punctu|ation ch|
|00005690| 61 72 61 63 74 65 72 73 | 2e 20 20 49 66 20 74 68 |aracters|. If th|
|000056a0| 65 20 65 6e 64 0a 58 6f | 66 20 74 68 65 20 66 69 |e end.Xo|f the fi|
|000056b0| 6c 65 20 68 61 73 20 62 | 65 65 6e 20 72 65 61 63 |le has b|een reac|
|000056c0| 68 65 64 2c 20 74 68 65 | 20 6f 75 74 70 75 74 20 |hed, the| output |
|000056d0| 69 73 20 74 68 65 20 65 | 6d 70 74 79 20 6c 69 73 |is the e|mpty lis|
|000056e0| 74 2e 0a 58 2e 4f 55 0a | 58 5c 66 33 6f 70 65 6e |t..X.OU.|X\f3open|
|000056f0| 77 72 69 74 65 5c 66 31 | 20 5c 28 65 6d 20 4f 70 |write\f1| \(em Op|
|00005700| 65 72 61 74 69 6f 6e 2c | 20 6f 6e 65 20 69 6e 70 |eration,| one inp|
|00005710| 75 74 2e 20 20 41 62 62 | 72 65 76 69 61 74 69 6f |ut. Abb|reviatio|
|00005720| 6e 3a 20 5c 66 33 6f 70 | 65 6e 77 5c 66 31 0a 58 |n: \f3op|enw\f1.X|
|00005730| 2e 49 4e 0a 58 54 68 65 | 20 69 6e 70 75 74 20 6d |.IN.XThe| input m|
|00005740| 75 73 74 20 62 65 20 61 | 20 55 6e 69 78 20 66 69 |ust be a| Unix fi|
|00005750| 6c 65 6e 61 6d 65 2e 20 | 20 54 68 65 20 66 69 6c |lename. | The fil|
|00005760| 65 20 69 73 20 6f 70 65 | 6e 65 64 20 66 6f 72 20 |e is ope|ned for |
|00005770| 77 72 69 74 69 6e 67 0a | 58 28 72 65 70 6c 61 63 |writing.|X(replac|
|00005780| 69 6e 67 20 61 6e 79 20 | 70 72 65 76 69 6f 75 73 |ing any |previous|
|00005790| 20 76 65 72 73 69 6f 6e | 29 2c 20 69 66 20 61 6c | version|), if al|
|000057a0| 6c 6f 77 65 64 2c 20 61 | 6e 64 20 74 68 65 20 6f |lowed, a|nd the o|
|000057b0| 75 74 70 75 74 20 69 73 | 20 61 20 66 69 6c 65 0a |utput is| a file.|
|000057c0| 58 64 65 73 63 72 69 70 | 74 6f 72 2c 20 66 6f 72 |Xdescrip|tor, for|
|000057d0| 20 75 73 65 20 62 79 20 | 66 69 6c 65 20 70 72 69 | use by |file pri|
|000057e0| 6e 74 69 6e 67 20 63 6f | 6d 6d 61 6e 64 73 20 62 |nting co|mmands b|
|000057f0| 65 6c 6f 77 2e 20 20 49 | 66 20 74 68 65 20 66 69 |elow. I|f the fi|
|00005800| 6c 65 0a 58 63 61 6e 6e | 6f 74 20 62 65 20 6f 70 |le.Xcann|ot be op|
|00005810| 65 6e 65 64 2c 20 61 6e | 20 65 72 72 6f 72 20 72 |ened, an| error r|
|00005820| 65 73 75 6c 74 73 2e 0a | 58 2e 4f 55 0a 58 2e 6e |esults..|X.OU.X.n|
|00005830| 66 0a 58 5c 66 33 66 69 | 6c 65 70 72 69 6e 74 5c |f.X\f3fi|leprint\|
|00005840| 66 31 20 5c 28 65 6d 20 | 43 6f 6d 6d 61 6e 64 2c |f1 \(em |Command,|
|00005850| 20 74 77 6f 20 69 6e 70 | 75 74 73 2e 20 20 41 62 | two inp|uts. Ab|
|00005860| 62 72 65 76 69 61 74 69 | 6f 6e 3a 20 5c 66 33 66 |breviati|on: \f3f|
|00005870| 69 70 5c 66 31 0a 58 5c | 66 33 66 69 6c 65 74 79 |ip\f1.X\|f3filety|
|00005880| 70 65 5c 66 31 20 5c 28 | 65 6d 20 43 6f 6d 6d 61 |pe\f1 \(|em Comma|
|00005890| 6e 64 2c 20 74 77 6f 20 | 69 6e 70 75 74 73 2e 20 |nd, two |inputs. |
|000058a0| 20 41 62 62 72 65 76 69 | 61 74 69 6f 6e 3a 20 5c | Abbrevi|ation: \|
|000058b0| 66 33 66 69 74 79 5c 66 | 31 0a 58 5c 66 33 66 69 |f3fity\f|1.X\f3fi|
|000058c0| 6c 65 66 70 72 69 6e 74 | 5c 66 31 20 5c 28 65 6d |lefprint|\f1 \(em|
|000058d0| 20 43 6f 6d 6d 61 6e 64 | 2c 20 74 77 6f 20 69 6e | Command|, two in|
|000058e0| 70 75 74 73 2e 20 20 41 | 62 62 72 65 76 69 61 74 |puts. A|bbreviat|
|000058f0| 69 6f 6e 3a 20 5c 66 33 | 66 69 66 70 5c 66 31 0a |ion: \f3|fifp\f1.|
|00005900| 58 5c 66 33 66 69 6c 65 | 66 74 79 70 65 5c 66 31 |X\f3file|ftype\f1|
|00005910| 20 5c 28 65 6d 20 43 6f | 6d 6d 61 6e 64 2c 20 74 | \(em Co|mmand, t|
|00005920| 77 6f 20 69 6e 70 75 74 | 73 2e 20 20 41 62 62 72 |wo input|s. Abbr|
|00005930| 65 76 69 61 74 69 6f 6e | 3a 20 5c 66 33 66 69 66 |eviation|: \f3fif|
|00005940| 74 79 5c 66 31 0a 58 2e | 66 69 0a 58 2e 49 4e 0a |ty\f1.X.|fi.X.IN.|
|00005950| 58 54 68 65 20 66 69 72 | 73 74 20 69 6e 70 75 74 |XThe fir|st input|
|00005960| 20 6d 75 73 74 20 62 65 | 20 61 20 66 69 6c 65 20 | must be| a file |
|00005970| 64 65 73 63 72 69 70 74 | 6f 72 20 70 72 65 76 69 |descript|or previ|
|00005980| 6f 75 73 6c 79 20 6f 75 | 74 70 75 74 20 62 79 0a |ously ou|tput by.|
|00005990| 58 5c 66 33 6f 70 65 6e | 77 72 69 74 65 5c 66 31 |X\f3open|write\f1|
|000059a0| 2e 20 20 54 68 65 20 73 | 65 63 6f 6e 64 20 69 6e |. The s|econd in|
|000059b0| 70 75 74 20 69 73 20 61 | 6e 79 20 6f 62 6a 65 63 |put is a|ny objec|
|000059c0| 74 2e 20 20 54 68 65 20 | 73 65 63 6f 6e 64 20 69 |t. The |second i|
|000059d0| 6e 70 75 74 0a 58 69 73 | 20 70 72 69 6e 74 65 64 |nput.Xis| printed|
|000059e0| 20 28 74 79 70 65 64 2c | 20 66 70 72 69 6e 74 65 | (typed,| fprinte|
|000059f0| 64 2c 20 66 74 79 70 65 | 64 29 20 69 6e 74 6f 20 |d, ftype|d) into |
|00005a00| 74 68 65 20 66 69 6c 65 | 2e 0a 58 2e 4f 55 0a 58 |the file|..X.OU.X|
|00005a10| 5c 66 33 63 6c 6f 73 65 | 5c 66 31 20 5c 28 65 6d |\f3close|\f1 \(em|
|00005a20| 20 43 6f 6d 6d 61 6e 64 | 2c 20 6f 6e 65 20 69 6e | Command|, one in|
|00005a30| 70 75 74 2e 0a 58 2e 49 | 4e 0a 58 54 68 65 20 69 |put..X.I|N.XThe i|
|00005a40| 6e 70 75 74 20 6d 75 73 | 74 20 62 65 20 61 20 66 |nput mus|t be a f|
|00005a50| 69 6c 65 20 64 65 73 63 | 72 69 70 74 6f 72 2e 20 |ile desc|riptor. |
|00005a60| 20 54 68 65 20 66 69 6c | 65 20 69 73 20 63 6c 6f | The fil|e is clo|
|00005a70| 73 65 64 2e 20 20 54 68 | 69 73 20 6d 75 73 74 0a |sed. Th|is must.|
|00005a80| 58 62 65 20 64 6f 6e 65 | 20 77 68 65 6e 20 79 6f |Xbe done| when yo|
|00005a90| 75 27 76 65 20 66 69 6e | 69 73 68 65 64 20 72 65 |u've fin|ished re|
|00005aa0| 61 64 69 6e 67 20 6f 72 | 20 77 72 69 74 69 6e 67 |ading or| writing|
|00005ab0| 20 74 68 65 20 66 69 6c | 65 2e 0a 58 2e 73 70 20 | the fil|e..X.sp |
|00005ac0| 31 0a 58 53 61 6d 70 6c | 65 20 70 72 6f 67 72 61 |1.XSampl|e progra|
|00005ad0| 6d 3a 0a 58 2e 73 70 20 | 31 0a 58 2e 6e 66 0a 58 |m:.X.sp |1.X.nf.X|
|00005ae0| 5c 66 33 6d 61 6b 65 20 | 22 66 64 20 6f 70 65 6e |\f3make |"fd open|
|00005af0| 77 72 69 74 65 20 22 6f | 75 74 66 69 6c 65 0a 58 |write "o|utfile.X|
|00005b00| 66 69 6c 65 70 72 69 6e | 74 20 3a 66 64 20 22 48 |fileprin|t :fd "H|
|00005b10| 65 6c 6c 6f 2e 0a 58 63 | 6c 6f 73 65 20 3a 66 64 |ello..Xc|lose :fd|
|00005b20| 5c 66 31 0a 58 2e 66 69 | 0a 58 2e 73 70 20 31 0a |\f1.X.fi|.X.sp 1.|
|00005b30| 58 54 68 69 73 20 77 69 | 6c 6c 20 63 72 65 61 74 |XThis wi|ll creat|
|00005b40| 65 20 61 20 66 69 6c 65 | 20 6e 61 6d 65 64 20 5c |e a file| named \|
|00005b50| 66 33 6f 75 74 66 69 6c | 65 5c 66 31 20 63 6f 6e |f3outfil|e\f1 con|
|00005b60| 74 61 69 6e 69 6e 67 20 | 74 68 65 20 77 6f 72 64 |taining |the word|
|00005b70| 20 5c 66 33 48 65 6c 6c | 6f 2e 5c 66 31 0a 58 2e | \f3Hell|o.\f1.X.|
|00005b80| 4f 55 0a 58 2e 74 69 20 | 2b 35 0a 58 2e 55 42 20 |OU.X.ti |+5.X.UB |
|00005b90| 22 50 72 69 6d 69 74 69 | 76 65 20 70 72 6f 63 65 |"Primiti|ve proce|
|00005ba0| 64 75 72 65 73 20 66 6f | 72 20 70 72 6f 63 65 64 |dures fo|r proced|
|00005bb0| 75 72 65 20 65 78 69 74 | 2e 22 0a 58 41 20 70 72 |ure exit|.".XA pr|
|00005bc0| 6f 63 65 64 75 72 65 20 | 77 72 69 74 74 65 6e 20 |ocedure |written |
|00005bd0| 62 79 0a 58 61 20 75 73 | 65 72 2c 20 69 6e 20 4c |by.Xa us|er, in L|
|00005be0| 6f 67 6f 2c 20 63 61 6e | 20 62 65 20 61 20 63 6f |ogo, can| be a co|
|00005bf0| 6d 6d 61 6e 64 20 6f 72 | 20 61 6e 20 6f 70 65 72 |mmand or| an oper|
|00005c00| 61 74 69 6f 6e 2e 20 20 | 49 66 20 69 74 20 69 73 |ation. |If it is|
|00005c10| 20 61 6e 20 6f 70 65 72 | 61 74 69 6f 6e 2c 0a 58 | an oper|ation,.X|
|00005c20| 79 6f 75 20 6d 75 73 74 | 2c 20 69 6e 20 74 68 65 |you must|, in the|
|00005c30| 20 70 72 6f 63 65 64 75 | 72 65 2c 20 73 61 79 20 | procedu|re, say |
|00005c40| 77 68 61 74 20 69 74 73 | 20 6f 75 74 70 75 74 20 |what its| output |
|00005c50| 73 68 6f 75 6c 64 20 62 | 65 2e 20 20 49 66 20 69 |should b|e. If i|
|00005c60| 74 20 69 73 20 61 0a 58 | 63 6f 6d 6d 61 6e 64 2c |t is a.X|command,|
|00005c70| 20 69 74 20 63 61 6e 20 | 73 69 6d 70 6c 79 20 73 | it can |simply s|
|00005c80| 74 6f 70 20 61 74 20 74 | 68 65 20 65 6e 64 20 6f |top at t|he end o|
|00005c90| 66 20 74 68 65 20 70 72 | 6f 63 65 64 75 72 65 2c |f the pr|ocedure,|
|00005ca0| 20 6f 72 20 79 6f 75 20 | 63 61 6e 20 65 78 70 6c | or you |can expl|
|00005cb0| 69 63 69 74 6c 79 0a 58 | 6d 61 6b 65 20 69 74 20 |icitly.X|make it |
|00005cc0| 73 74 6f 70 20 62 65 66 | 6f 72 65 20 74 68 65 20 |stop bef|ore the |
|00005cd0| 65 6e 64 2e 0a 58 2e 73 | 70 20 31 0a 58 5c 66 33 |end..X.s|p 1.X\f3|
|00005ce0| 6f 75 74 70 75 74 5c 66 | 31 20 5c 28 65 6d 20 43 |output\f|1 \(em C|
|00005cf0| 6f 6d 6d 61 6e 64 2c 20 | 6f 6e 65 20 69 6e 70 75 |ommand, |one inpu|
|00005d00| 74 2e 20 20 41 62 62 72 | 65 76 69 61 74 69 6f 6e |t. Abbr|eviation|
|00005d10| 3a 20 5c 66 33 6f 70 5c | 66 31 0a 58 2e 49 4e 0a |: \f3op\|f1.X.IN.|
|00005d20| 58 54 68 69 73 20 63 6f | 6d 6d 61 6e 64 20 69 73 |XThis co|mmand is|
|00005d30| 20 75 73 65 64 20 69 6e | 20 61 20 75 73 65 72 20 | used in| a user |
|00005d40| 70 72 6f 63 65 64 75 72 | 65 20 77 68 69 63 68 20 |procedur|e which |
|00005d50| 69 73 20 6d 65 61 6e 74 | 20 74 6f 20 62 65 20 61 |is meant| to be a|
|00005d60| 6e 0a 58 6f 70 65 72 61 | 74 69 6f 6e 2e 20 20 54 |n.Xopera|tion. T|
|00005d70| 68 65 20 69 6e 70 75 74 | 20 74 6f 20 74 68 69 73 |he input| to this|
|00005d80| 20 63 6f 6d 6d 61 6e 64 | 20 62 65 63 6f 6d 65 73 | command| becomes|
|00005d90| 20 74 68 65 20 6f 75 74 | 70 75 74 20 66 72 6f 6d | the out|put from|
|00005da0| 20 74 68 65 0a 58 75 73 | 65 72 20 70 72 6f 63 65 | the.Xus|er proce|
|00005db0| 64 75 72 65 2e 20 20 50 | 6c 65 61 73 65 20 64 6f |dure. P|lease do|
|00005dc0| 6e 27 74 20 62 65 20 63 | 6f 6e 66 75 73 65 64 20 |n't be c|onfused |
|00005dd0| 62 79 20 74 68 65 20 66 | 61 63 74 20 74 68 61 74 |by the f|act that|
|00005de0| 20 74 68 65 20 75 73 65 | 72 0a 58 70 72 6f 63 65 | the use|r.Xproce|
|00005df0| 64 75 72 65 20 69 73 20 | 61 6e 20 6f 70 65 72 61 |dure is |an opera|
|00005e00| 74 69 6f 6e 2c 20 77 68 | 69 6c 65 20 74 68 65 20 |tion, wh|ile the |
|00005e10| 5c 66 33 6f 75 74 70 75 | 74 5c 66 31 20 70 72 69 |\f3outpu|t\f1 pri|
|00005e20| 6d 69 74 69 76 65 0a 58 | 70 72 6f 63 65 64 75 72 |mitive.X|procedur|
|00005e30| 65 20 69 73 20 61 20 63 | 6f 6d 6d 61 6e 64 20 75 |e is a c|ommand u|
|00005e40| 73 65 64 20 69 6e 20 74 | 68 61 74 20 70 72 6f 63 |sed in t|hat proc|
|00005e50| 65 64 75 72 65 2e 20 20 | 45 78 61 6d 70 6c 65 3a |edure. |Example:|
|00005e60| 0a 58 2e 73 70 20 31 0a | 58 2e 6e 66 0a 58 5c 66 |.X.sp 1.|X.nf.X\f|
|00005e70| 33 74 6f 20 6e 69 63 6b | 6e 61 6d 65 20 3a 70 65 |3to nick|name :pe|
|00005e80| 72 73 6f 6e 0a 58 69 66 | 20 65 71 75 61 6c 70 20 |rson.Xif| equalp |
|00005e90| 3a 70 65 72 73 6f 6e 20 | 5b 50 65 74 65 72 20 50 |:person |[Peter P|
|00005ea0| 61 72 6b 65 72 5d 20 5b | 6f 75 74 70 75 74 20 22 |arker] [|output "|
|00005eb0| 53 70 69 64 65 72 6d 61 | 6e 5d 0a 58 69 66 20 65 |Spiderma|n].Xif e|
|00005ec0| 71 75 61 6c 70 20 3a 70 | 65 72 73 6f 6e 20 5b 4c |qualp :p|erson [L|
|00005ed0| 61 6d 6f 6e 74 20 43 72 | 61 6e 73 74 6f 6e 5d 20 |amont Cr|anston] |
|00005ee0| 5b 6f 75 74 70 75 74 20 | 22 53 68 61 64 6f 77 5d |[output |"Shadow]|
|00005ef0| 0a 58 6f 75 74 70 75 74 | 20 66 69 72 73 74 20 3a |.Xoutput| first :|
|00005f00| 70 65 72 73 6f 6e 0a 58 | 65 6e 64 5c 66 31 0a 58 |person.X|end\f1.X|
|00005f10| 2e 66 69 0a 58 2e 4f 55 | 0a 58 5c 66 33 73 74 6f |.fi.X.OU|.X\f3sto|
|00005f20| 70 5c 66 31 20 5c 28 65 | 6d 20 43 6f 6d 6d 61 6e |p\f1 \(e|m Comman|
|00005f30| 64 2c 20 6e 6f 20 69 6e | 70 75 74 73 2e 0a 58 2e |d, no in|puts..X.|
|00005f40| 49 4e 0a 58 54 68 69 73 | 20 63 6f 6d 6d 61 6e 64 |IN.XThis| command|
|00005f50| 20 69 73 20 75 73 65 64 | 20 69 6e 20 75 73 65 72 | is used| in user|
|00005f60| 20 70 72 6f 63 65 64 75 | 72 65 73 20 77 68 69 63 | procedu|res whic|
|00005f70| 68 20 61 72 65 20 6d 65 | 61 6e 74 20 74 6f 20 62 |h are me|ant to b|
|00005f80| 65 0a 58 63 6f 6d 6d 61 | 6e 64 73 2e 20 20 49 74 |e.Xcomma|nds. It|
|00005f90| 20 73 74 6f 70 73 20 74 | 68 65 20 75 73 65 72 20 | stops t|he user |
|00005fa0| 70 72 6f 63 65 64 75 72 | 65 2e 20 20 28 4e 6f 74 |procedur|e. (Not|
|00005fb0| 65 20 74 68 61 74 20 69 | 74 20 64 6f 65 73 20 6e |e that i|t does n|
|00005fc0| 6f 74 0a 58 73 74 6f 70 | 20 61 6c 6c 20 72 75 6e |ot.Xstop| all run|
|00005fd0| 6e 69 6e 67 20 70 72 6f | 63 65 64 75 72 65 73 2e |ning pro|cedures.|
|00005fe0| 20 20 49 66 20 75 73 65 | 72 20 70 72 6f 63 65 64 | If use|r proced|
|00005ff0| 75 72 65 20 41 20 72 75 | 6e 73 20 75 73 65 72 20 |ure A ru|ns user |
|00006000| 70 72 6f 63 65 64 75 72 | 65 0a 58 42 2c 20 61 20 |procedur|e.XB, a |
|00006010| 5c 66 33 73 74 6f 70 5c | 66 31 20 63 6f 6d 6d 61 |\f3stop\|f1 comma|
|00006020| 6e 64 20 69 6e 20 70 72 | 6f 63 65 64 75 72 65 20 |nd in pr|ocedure |
|00006030| 42 20 72 65 74 75 72 6e | 73 20 74 6f 20 70 72 6f |B return|s to pro|
|00006040| 63 65 64 75 72 65 20 41 | 2c 20 77 68 69 63 68 0a |cedure A|, which.|
|00006050| 58 63 6f 6e 74 69 6e 75 | 65 73 20 61 66 74 65 72 |Xcontinu|es after|
|00006060| 20 74 68 65 20 70 6f 69 | 6e 74 20 77 68 65 72 65 | the poi|nt where|
|00006070| 20 70 72 6f 63 65 64 75 | 72 65 20 42 20 77 61 73 | procedu|re B was|
|00006080| 20 69 6e 76 6f 6b 65 64 | 2e 29 0a 58 2e 4f 55 0a | invoked|.).X.OU.|
|00006090| 58 5c 66 33 74 6f 70 6c | 65 76 65 6c 5c 66 31 20 |X\f3topl|evel\f1 |
|000060a0| 5c 28 65 6d 20 43 6f 6d | 6d 61 6e 64 2c 20 6e 6f |\(em Com|mand, no|
|000060b0| 20 69 6e 70 75 74 73 2e | 0a 58 2e 49 4e 0a 58 54 | inputs.|.X.IN.XT|
|000060c0| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 73 74 6f 70 |his comm|and stop|
|000060d0| 73 20 61 6c 6c 20 72 75 | 6e 6e 69 6e 67 20 70 72 |s all ru|nning pr|
|000060e0| 6f 63 65 64 75 72 65 73 | 2e 20 20 54 68 65 20 75 |ocedures|. The u|
|000060f0| 73 65 72 20 61 74 20 74 | 68 65 20 74 65 72 6d 69 |ser at t|he termi|
|00006100| 6e 61 6c 0a 58 69 73 20 | 70 72 6f 6d 70 74 65 64 |nal.Xis |prompted|
|00006110| 20 74 6f 20 74 79 70 65 | 20 61 6e 6f 74 68 65 72 | to type| another|
|00006120| 20 63 6f 6d 6d 61 6e 64 | 2e 20 20 54 68 69 73 20 | command|. This |
|00006130| 63 61 6e 20 62 65 20 75 | 73 65 64 20 77 68 65 6e |can be u|sed when|
|00006140| 20 61 20 75 73 65 72 0a | 58 70 72 6f 63 65 64 75 | a user.|Xprocedu|
|00006150| 72 65 20 64 69 73 63 6f | 76 65 72 73 20 73 6f 6d |re disco|vers som|
|00006160| 65 20 65 72 72 6f 72 20 | 63 6f 6e 64 69 74 69 6f |e error |conditio|
|00006170| 6e 20 61 6e 64 20 77 61 | 6e 74 73 20 74 6f 20 61 |n and wa|nts to a|
|00006180| 62 6f 72 74 20 74 68 65 | 20 65 6e 74 69 72 65 0a |bort the| entire.|
|00006190| 58 70 72 6f 67 72 61 6d | 2c 20 66 6f 72 20 65 78 |Xprogram|, for ex|
|000061a0| 61 6d 70 6c 65 2e 0a 58 | 2e 4f 55 0a 58 2e 74 69 |ample..X|.OU.X.ti|
|000061b0| 20 2b 35 0a 58 2e 55 42 | 20 22 50 72 6f 70 65 72 | +5.X.UB| "Proper|
|000061c0| 74 79 20 6c 69 73 74 73 | 2e 22 0a 58 49 74 20 69 |ty lists|.".XIt i|
|000061d0| 73 20 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 61 73 |s possib|le to as|
|000061e0| 73 6f 63 69 61 74 65 20 | 77 69 74 68 20 61 6e 79 |sociate |with any|
|000061f0| 20 6e 61 6d 65 20 61 20 | 6c 69 73 74 0a 58 6f 66 | name a |list.Xof|
|00006200| 20 22 70 72 6f 70 65 72 | 74 69 65 73 22 2e 20 20 | "proper|ties". |
|00006210| 41 20 70 72 6f 70 65 72 | 74 79 20 6c 69 73 74 20 |A proper|ty list |
|00006220| 63 6f 6e 74 61 69 6e 73 | 20 70 72 6f 70 65 72 74 |contains| propert|
|00006230| 79 20 6e 61 6d 65 73 20 | 61 6e 64 20 70 72 6f 70 |y names |and prop|
|00006240| 65 72 74 79 0a 58 76 61 | 6c 75 65 73 2e 20 20 46 |erty.Xva|lues. F|
|00006250| 6f 72 20 65 78 61 6d 70 | 6c 65 3a 0a 58 2e 49 4e |or examp|le:.X.IN|
|00006260| 0a 58 2e 6e 66 0a 58 2e | 73 70 20 31 0a 58 5c 66 |.X.nf.X.|sp 1.X\f|
|00006270| 33 70 70 72 6f 70 20 22 | 62 68 20 22 66 69 72 73 |3pprop "|bh "firs|
|00006280| 74 6e 61 6d 65 20 22 42 | 72 69 61 6e 0a 58 70 70 |tname "B|rian.Xpp|
|00006290| 72 6f 70 20 22 62 68 20 | 22 6c 61 73 74 6e 61 6d |rop "bh |"lastnam|
|000062a0| 65 20 22 48 61 72 76 65 | 79 5c 66 31 0a 58 2e 66 |e "Harve|y\f1.X.f|
|000062b0| 69 0a 58 2e 4f 55 0a 58 | 54 68 65 20 66 6f 72 6d |i.X.OU.X|The form|
|000062c0| 20 6f 66 20 61 20 70 72 | 6f 70 65 72 74 79 20 6c | of a pr|operty l|
|000062d0| 69 73 74 20 69 73 0a 58 | 2e 45 58 0a 58 5b 6e 61 |ist is.X|.EX.X[na|
|000062e0| 6d 65 31 20 76 61 6c 31 | 20 6e 61 6d 65 32 20 76 |me1 val1| name2 v|
|000062f0| 61 6c 32 20 6e 61 6d 65 | 33 20 76 61 6c 33 5d 0a |al2 name|3 val3].|
|00006300| 58 2e 45 43 0a 58 41 6c | 74 68 6f 75 67 68 20 74 |X.EC.XAl|though t|
|00006310| 68 69 73 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |his data| structu|
|00006320| 72 65 20 63 6f 75 6c 64 | 20 62 65 20 63 72 65 61 |re could| be crea|
|00006330| 74 65 64 20 75 73 69 6e | 67 20 6f 74 68 65 72 20 |ted usin|g other |
|00006340| 4c 6f 67 6f 20 70 72 69 | 6d 69 74 69 76 65 73 2c |Logo pri|mitives,|
|00006350| 0a 58 73 70 65 63 69 61 | 6c 20 70 72 6f 70 65 72 |.Xspecia|l proper|
|00006360| 74 79 20 6c 69 73 74 20 | 70 72 69 6d 69 74 69 76 |ty list |primitiv|
|00006370| 65 73 20 61 72 65 20 70 | 72 6f 76 69 64 65 64 20 |es are p|rovided |
|00006380| 62 65 63 61 75 73 65 20 | 74 68 65 79 20 61 72 65 |because |they are|
|00006390| 20 66 61 73 74 65 72 2e | 20 20 54 68 65 0a 58 70 | faster.| The.Xp|
|000063a0| 72 6f 70 65 72 74 79 20 | 6c 69 73 74 73 20 64 6f |roperty |lists do|
|000063b0| 20 6e 6f 74 20 73 68 61 | 72 65 20 73 74 6f 72 61 | not sha|re stora|
|000063c0| 67 65 20 77 69 74 68 20 | 4c 6f 67 6f 20 76 61 72 |ge with |Logo var|
|000063d0| 69 61 62 6c 65 73 2c 20 | 73 6f 20 79 6f 75 20 63 |iables, |so you c|
|000063e0| 61 6e 20 63 68 61 6e 67 | 65 0a 58 74 68 65 20 76 |an chang|e.Xthe v|
|000063f0| 61 6c 75 65 20 6f 66 20 | 61 6e 79 20 70 72 6f 70 |alue of |any prop|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.