17.01.2013 Views

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DI<br />

01<br />

10 CLS:TAG:EVERY 10 GOSUB 90<br />

20 X1=RND*320:X2=RND*320<br />

30 Y=200+RND*200:C$=CHR$(RND*255)<br />

40 FOR X=320-X1 TO 320+X2 STEP 4<br />

50 DI<br />

60 MOVE 320,0,1:MOVE X-2,Y:MOVE X,Y<br />

70 PRINT" ";C$;:FRAME<br />

80 EI:NEXT:GOTO 20<br />

90 MOVE 320,0:DRAW X+8,Y-16,0:RETURN<br />

run<br />

COMMAND: Disables Interrupts (other than the [ESe] interrupt) until re-<strong>en</strong>abled<br />

explicitly by E I or implicitly by the RE T URN at the <strong>en</strong>d of an interrupt sub-routine.<br />

Note that <strong>en</strong>tering an interrupt sub-routine automatically disables interrupts of an<br />

equal or lower priority. '<br />

The command is used to make the program literally execute without interruption<br />

- for example wh<strong>en</strong> two routines within a program are competing for use of resources.<br />

In the example above, the main program and the interrupt sub-routine are competing<br />

for use of the graphics display.<br />

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

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

Associated keywords: AFT ER, E I, EVE R Y , REM A I N<br />

Complete List of Keywords Chapter 3 Page 17

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

Saved successfully!

Ooh no, something went wrong!