--- title: "Word Wrap Utility" type: "article" slug: "word-wrap-utility-2" url: "http://localhost/article/word-wrap-utility-2/" markdown_url: "http://localhost/article/word-wrap-utility-2.md" published_at: "2026-11-29T21:24:40+00:00" modified_at: "2026-11-29T21:24:40+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Use this utility to make the printing of text to screen or printer more readable. Its purpose is to \"word wrap\" so that words will not be cut off at the end of a line on the screen (or printer) but wrapped around so that the entire word appears at the beginning of the next…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" indiv: - name: "Charles Stelding" slug: "charles-stelding" taxonomy: "indiv" url: "http://localhost/indiv/charles-stelding/" publication_r: id: 50143 title: "The Data Expansion" type: "periodical" url: "http://localhost/periodical/the-data-expansion/" authors: "Charles Stelding" volume: "3" issue: "9" issues_articles: - id: 50237 title: "The Data Expansion v3 n9" type: "issue" url: "http://localhost/issue/the-data-expansion-v3-n9/" pages: "7-8" pubdate: "September 1986" archive_link: false --- # Word Wrap Utility Use this utility to make the printing of text to screen or printer more readable. Its purpose is to “word wrap” so that words will not be cut off at the end of a line on the screen (or printer) but wrapped around so that the entire word appears at the beginning of the next line. Enter the following BASIC program. Type GOTO 9000 which pokes the code into memory. Save the code at 64500,193. You may then DELETE 9000,9999. Study the BASIC listing to see how to use this utility. Notice that your text must be placed in Z$. Other instructions are listed in the BASIC program. ``` 1 REM Word wrap utility adapted by Charles Stelding for the Timex 2068 from ZX MONTHLY, May 1986. p.37. 10 CLS : LET z$="": FOR i=1 TO 3: LET z$=z$+"This utility ""word wraps"" the printing on screen for ease of reading. ": NEXT i 20 RANDOMIZE USR 64505 30 PRINT ''"Without z$ routine:"''z$ 35 PRINT "": PAUSE 0: CLS 40 LET z$="Z$ must not be over 255 chars. long. POKE 64501,1 sends text to printer. POKE 64648, starts screen print at which is now set at 20": RANDOMIZE USR 64505 50 PRINT "See listing for examples of this utility.": RANDOMIZE USR 64505 60 PAUSE 0: CLS : LIST TO STOP 9000>REM load code and check for errors: SAVE code at 64500,193 9010 RESTORE 9975: LET addr=64500: FOR j=9975 TO 9999: LET val=0: READ a$,tot: FOR k=1 TO LEN a$ STEP 2: LET num=(CODE a$(k)-48-(7 AND a$(k)>"9"))*16+(CODE a$(k+1)-48-(7 AND a$(k+1)>"9")): POKE addr,num: LET val=num+val: LET addr=addr+1: NEXT k: IF tot<>val THEN PRINT FLASH 1;"Error at line ";j: LIST j: STOP 9011 PRINT AT 10,0;"Loading DATA line ";j: NEXT j 9020 GO TO 10 9975 DATA "00000000002A4B5C",209 9976 DATA "7EFE5A2806CD2017",776 9977 DATA "EB18F5237E32F5FB",1211 9978 DATA "232322F7FBCD4BFC",1134 9979 DATA "FE012864CD5DFCCD",1150 9980 DATA "7CFC2AF7FBED5BF6",1490 9981 DATA "FB16001922F7FB3A",888 9982 DATA "F6FB473AF5FB9032",1316 9983 DATA "F5FB2AF7FB7EFE20",1448 9984 DATA "20D32322F7FB3AF5",1113 9985 DATA "FB3D32F5FB18EB3A",1175 9986 DATA "F5FBFE213802AFC9",1217 9987 DATA "3AF5FB32F6FB3E01",1164 9988 DATA "C92AF7FB111F0019",814 9989 DATA "7EFE1F3006137B32",657 9990 DATA "F6FBC9237EFE2020",1177 9991 DATA "0218F21B2B2B18E8",637 9992 DATA "CD39093E02CD3012",606 9993 DATA "3E16D73E14D7AFD7",986 9994 DATA "ED5BF7FBED4BF6FB",1635 9995 DATA "0600CDDB213AF4FB",1016 9996 DATA "FE01C03E03CD3012",783 9997 DATA "ED5BF7FBED4BF6FB",1635 9998 DATA "0600CDDB213E0DD7",753 9999 DATA "C900000000000000",201 ```