home *** CD-ROM | disk | FTP | other *** search
/ Falcon 030 Power 2 / F030_POWER2.iso / ST_STE / MAGS / STOSBTS1.ARJ / stosbts1.msa / DATA / RAST.DAT < prev    next >
Text File  |  1987-04-22  |  3KB  |  108 lines

  1. Hello and welcome to the first collection of TIPS for coding in
  2. STOS.I know alot of you proberbly look at demos like the mindbomb demo
  3. or the genesys demos and wish you were able to create the effects
  4. used in those demos....well by using STOS you can almost achieve
  5. this, of course the results aren't as good as thos done using 68000
  6. but are still very effective !!!.Fisrtly I will show you how create
  7. RASTERS!, these are those nifty colour bars that move up and down the
  8. screen, using the horizontal blank interupt (timer B) you can change
  9. the actual colour of any colour register(0-15 in low resolution.),if
  10. you change the colours fast enough you can have as many colours on
  11. screen at once.
  12.  
  13.  By DOKING (Oh erh !) $FF8240 with $777 will cause the back ground
  14. colour to change to white , this will only be visable if the colour
  15. wasn't white to start with, by doking $700 the background becomes
  16. red.
  17.  
  18.  $FF8240 is colour register 0 $FF8242 is the next and so on, but
  19. remember we are working in HEX so you need to use letters, no need to
  20. write down all the addresses as it won't take long for you to find
  21. them and it will be a sort of task for you to peform.
  22.  
  23.  And now for a little bit about horizontal blanks......Every 1/50th
  24. of a second the picture on your tv/monitor you are watching is
  25. redrawn by an electron gun which starts at the top left of the screen
  26. and scans left to right until it reaches the bottom, then it returns
  27. to the top and does it again( It must get very bored, its proberbly
  28. like doing Maths homework!!),If you can track the electron beam as it
  29. zips around the screen you can change the colour it is drawing, do
  30. you follow?
  31.  
  32.  It must be said that to keep track of the beam takes almost all of
  33. STOS's time so try and do too musch only results in a scambling of
  34. colours and could cause a mega crash !!!
  35.  
  36.  The following piece of code demonstrates rasters, it produces 3
  37. colour bars that move up and down the screen, behind a picture, which
  38. reminds me for the code to work you need to place a suitable screen
  39. in menory bank 15...Well bye and happy rasters!!!!!!!!
  40.  
  41.  
  42.  
  43. A SIMPLE RASTER BY EDDIE OF THB 23 SEPT 1990 YEAH!
  44.  
  45.  
  46.  
  47.  
  48. 1 hide
  49. 2 curs off : key off
  50. 3 F=7 : S=1
  51. 4 get palette (15)
  52. 5 screen copy 15 to physic
  53. 6 auto back off
  54. 10 wait vbl
  55. 20 for I=1 to F : next I
  56. 30 doke $FF8240,$100
  57. 31 doke $FF8240,$200
  58. 32 doke $FF8240,$300
  59. 33 doke $FF8240,$400
  60. 34 doke $FF8240,$500
  61. 35 doke $FF8240,$600
  62. 36 doke $FF8240,$700
  63. 37 doke $FF8240,$600
  64. 38 doke $FF8240,$500
  65. 39 doke $FF8240,$400
  66. 40 doke $FF8240,$300
  67. 41 doke $FF8240,$200
  68. 42 doke $FF8240,$100
  69. 43 doke $FF8240,$0
  70. 44 doke $FF8240,$10
  71. 45 doke $FF8240,$20
  72. 46 doke $FF8240,$30
  73. 47 doke $FF8240,$40
  74. 48 doke $FF8240,$50
  75. 49 doke $FF8240,$60
  76. 50 doke $FF8240,$70
  77. 51 doke $FF8240,$60
  78. 52 doke $FF8240,$50
  79. 53 doke $FF8240,$40
  80. 54 doke $FF8240,$30
  81. 55 doke $FF8240,$20
  82. 56 doke $FF8240,$10
  83. 57 doke $FF8240,$0
  84. 58 doke $FF8240,$1
  85. 59 doke $FF8240,$2
  86. 60 doke $FF8240,$3
  87. 61 doke $FF8240,$4
  88. 62 doke $FF8240,$5
  89. 63 doke $FF8240,$6
  90. 64 doke $FF8240,$7
  91. 65 doke $FF8240,$6
  92. 66 doke $FF8240,$5
  93. 67 doke $FF8240,$4
  94. 68 doke $FF8240,$3
  95. 69 doke $FF8240,$2
  96. 70 doke $FF8240,$1
  97. 71 doke $FF8240,$0
  98. 90 if S=1 then inc F
  99. 91 if S=2 then dec F
  100. 92 if F=110 then S=2
  101. 93 if F=6 then S=1
  102. 100 goto 10
  103.  
  104. Well how about this then??
  105. the date is now 21 December 1990- and I (Eddie) am going through
  106. all the text files adding a tag character  to the end of each file.
  107. }
  108.