11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

CUTTING A PIECE OUT OF THE MIDDLEThe MID$( ) function cuts a piece out of the middle of the string.Run: 10 REM### MIDDLE ###20 PRINT'clr"30 N$="WQXEMIDUICXZ"40 P$= MID$(N$.5,3]45 PRINT P$In line 40,P$= MID$(N$,5,3] meansGet the string from box N$.Count over five letters and start saving letters into box P$.Save three letters.LOOK MA, NO SPACESEnter 10 REM 20 PRINT "clrdndndn"21 PRINT" GIVE ME A LONG SENTENCE dn"35 IN PUT S$40 L=LEN(S$)45 T$=""50 FOR 1=1 TO L :REM RUN THROUGH THE WORDS60 L$=MID$(S$,I,1) :REM LOOK AT EACH LETTER70 IF L$" " THEN T$=T$+TL$: REM SAVE ONLY LETTERS80 NEXT I90PRINT"clrdndn";T$Line 60 snips just one letter at a time out of the middle of the string.A REAL CLOCKThe C-64 has a clock which is always running. The time is kept in a string named TI$.There are six digits in the string. You have to split them apart to make the clock easy toread. You can reset it with a LET command.TI$="123456" means 12 hours, 34 minutes and 56 seconds149

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

Saved successfully!

Ooh no, something went wrong!