17.01.2013 Views

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

AFTER<br />

AFT E R [, ] GO SUB <br />

10 AFTER 250 GOSUB 60:CLS<br />

20 PRINT "Guess a Letter in 5 seconds"<br />

30 a$=INKEY$:IF fLag=1 THEN END<br />

40 IF a$CHR$(INT(RND*26+97» THEN 30<br />

50 PRINT a$;" is correct. You win"<br />

55 SOUND 1,478:S0UND 1,358:END<br />

60 PRINT "too Late. I win"<br />

70 SOUND 1,2000:fLag=1:RETURN<br />

run<br />

COMMAND: Calls a BASIC sub-routine after a giv<strong>en</strong> period of time has elapsed. The<br />

parameter specifies the period of time in units of 0.02 (fiftieths) second.<br />

The (in the range 0 to 3) specifies which of the four delay timers are to<br />

be used. Timer 3 has the highest priority; timer 0 (the default timer) has the lowest.<br />

Each ofthe timers may have a sub-routine associated with it<br />

Further information concerning interrupts will be found in part 2 of the chapter<br />

<strong>en</strong>titled 'At your leisure .... >.<br />

Associatedkeywords: EVERY, REMAIN, RETURN<br />

AND<br />

AND <br />

IF "aLan""cat" THEN PRINT "correct" ELSE PRINT "wrong"<br />

I F "bob""dog" THEN PRINT "correct" ELSE PRINT "wrong"<br />

IF "aLan""dog" THEN PRINT "correct" ELSE PRINT "wrong"<br />

PRINT1AND1<br />

1<br />

PRINT0AND0<br />

o<br />

PRINT1AND0<br />

o<br />

OPERATOR: Performs bit-wise boolean operation on integers. Result is 0 unless<br />

both argum<strong>en</strong>t bits are 1 .<br />

Further information concerning logic will be found in part 2 of the chapter <strong>en</strong>titled<br />

'At your leisure .... '.<br />

Associated keywords: 0 R, NOT, X 0 R<br />

Chapter 3 Page 4 Complete List of Keywords

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

Saved successfully!

Ooh no, something went wrong!