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.

You can add users to this program by adding lines tothe 300-340 subroutine.Program Listing10 FOR L=l TO 320 PRINT "YOUR ACCOUNT NUMBER ?"30 INPUT U40 GOSUB 30050 PRINT "PASSWORD ?"60 INPUT P$70 IF P$=W$ THEN GOTO 10080 NEXT L90 STOP100 PRINT "YOU GOT IT RIGHT"110 PRINT "A PROGRAM WOULD RUN"120 STOP300 IF U=l2345 THEN LET W$="ZEBRA"310 IF 0=23456 THEN LET W$="GOOSE"320 IF U=34567 THEN LET W$="TROUT"330 IF 0=45678 THEN LET W$="SNAKE"340 RETURN26 Memory ReviewThis useful program examines a range of memorylocations you specify and reports what it finds there. Itdisplays the memory location number alongside the con·tents, for convenience.Program Listing10 PRINT "SEARCH ROM MEMORY"20 PRINT "FOR CONTENTS FROM •••..n •30 PRINT "LOW ADDRESS: ,40 INPUT L50 PRINT Ln •60 PRINT "HIGH ADDRESS: ,70 INPUT H80 PRINT H41

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

Saved successfully!

Ooh no, something went wrong!