home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1994-01-29 | 921 b | 37 lines |
- Screen Open 0,320,256,2,Lowres
- Hide
- Cls 0
- Colour 1,$FFF
- 'reserve memory for the 'STARS' and store the actual screen adress (screen 0)
- Extension_12_03A2 300
- 'define the stars...
- 'only X-speeds are used in the 'STARS INTERRUPT'...
- For I=1 To 300
- Extension_12_03B6 I,Rnd(319)+1,I/1.5,Rnd(5)+1,0
- Next
- Wait Vbl
- Extension_12_0016
- 'enable the 'STARS' interrupt...no automatic clear mode.
- Extension_12_047E 0
- 'do something else
- COUNT=0
- Repeat
- Inc COUNT
- COUNT$=Str$(COUNT)
- For Y=80 To 140 Step 20
- Text 30,Y,COUNT$
- Next
- Colour 1,COUNT
- 'try to use the Wait Vbl command...
- Extension_12_00A6 201
- 'don't forget to clear the display every Vbl,
- 'because automatic clear mode is disabled !
- Extension_12_0380 1
- Until Extension_12_0392
- 'disable the 'STARS' interrupt
- Extension_12_0492
- 'return the memory used to the system
- Extension_12_03E4
- Extension_12_0006
- 'voila...
- End