12.07.2015 Views

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

page-1983-101-timex-sinclair-programming-tricks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Program Listing10 CLS100 FOR L=g TO 21110 FOR C=g TO 31120 PRINT AT L,C:CHR$ 128130 NEXT c140 NEXT L150 GOTO 15086 Centered MessageThink up a message of up to 20 characters andspaces. Type it into your TIMEX in response to the requesthere at line 110.The computer will highlight your message by centeringit on the video screen.Use this handy centering program for titles and otherimportant parts of longer programs. It makes a goodsubroutine.Program Listing10 LET A$=nn100 PRINT nMESSAGE:"110 INPUT M$200 LET L=LEN M$210 LET T=L+4220 FOR Z=l TO T230 LET A$=A$+n*n240 NEXT Z250 LET P=(40-T)/2260 CLS300 PRINT TAB P:A$310 PRINT TAB P:n* n:M$:n *n320 PRINT TAB P:A$107

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!