home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 247 / 247.d81 / t.mini-screen < prev    next >
Text File  |  2022-08-26  |  3KB  |  151 lines

  1. u
  2.         M I N I - S C R E E N
  3.            by Dave Moorman
  4.  
  5.  
  6.     MINI-SCREEN is a text-screen
  7. bitmap display routine the puts Mini-
  8. Bitmap images on the screen. This is
  9. an ML module that must be bloaded to
  10. memory before use. We have included
  11. two versions -- SCREEN192.ML and
  12. SCREEN158.ML. The number is the memory
  13. page to which the module must be
  14. beloaded.
  15.  
  16.  SYS57812"SCREEN192.ML",dv,0
  17.  POKE780,0      ---
  18.  PO781,0
  19.  POKE782,192
  20.          ---
  21.  SYS65493
  22.  SC=192*256
  23.     ---
  24.  
  25.  
  26.  SETUP
  27.  -----
  28.  
  29.  SYS SC,X,Y,COLOR
  30.  
  31. where X is the text column
  32.       Y is the text row
  33.         of the upper left corner
  34.         of the mini-screen
  35.       COLOR is the foreground color
  36.             of the mini-screen
  37.  
  38.     The mini-screen needs to be placed
  39. on the screen with this command. Also,
  40. a custom font location must be
  41. established (for instance at Page 56)
  42. and switched to (by poking 5353272 the
  43. the appropriate value). The font area
  44. is where the mini-bitmap files are
  45. bloaded.
  46.  
  47.  
  48.  CLEAR
  49.  -----
  50.  
  51.  SYS SC+3,SWITCH
  52.  
  53. where SWITCH is either 0 or 1. If 0,
  54. the mini-bitmap area is filled with
  55. 0's -- showing the background color.
  56. It 1, the area is filled with 1's --
  57. showing the foreground color. If you
  58. have already bloaded a mini-bitmap
  59. file to the font, you will not want to
  60. do this.
  61.  
  62.  
  63.  PLOT
  64.  ----
  65.  
  66.  SYS SC+6,X,Y,P
  67.  
  68. where X is the pixel column (0-127)
  69.       Y is the pixel row (0-95)
  70.       P is the pixel to plot (0-1)
  71.  
  72.  Not a very fancy plot routine, but
  73. servicable.
  74.  
  75.  
  76.  MPLOT
  77.  -----
  78.  
  79.  SYS SC+9,X,Y,P
  80.  
  81. where X is the pixel column (0-63)
  82.       Y is the pixel row (0-95)
  83.       P is the pixel value (0-3)
  84.  
  85.  This is a multi-color text mode plot.
  86. When using SETUP, the color must be
  87. COLOR+8 to enable the MC Text Mode.
  88. Also, 53280-53282 must be set with the
  89. three background colors.
  90.  
  91.  
  92.  COPYMEM
  93.  -------
  94.  
  95.  SYS SC+12,FPG,TPG,PGS
  96.  
  97. where FPG is the From Page
  98.       TPG is the To Page
  99.       PGS is the number of Pages to
  100.           copy.
  101.  
  102.  This is a very fast copymem because
  103. it doesn't mess around with odd
  104. numbers of bytes -- copying whole
  105. pages.
  106.  
  107.  
  108.     With this module, you can build
  109. your own mini-bitmap screens. A couple
  110. of secrets:
  111.  
  112.     These bitmaps use all but 64
  113. characters of the font. So when a
  114. MINI-BITMAP is made from a SHP or
  115. Doodle graphics file, the alphanumeric
  116. characters are only capitals, and all
  117. reversed. The "blank" screen, except
  118. where the mini-bitmap is displayed, is
  119. all CHR$(32)'s, and so is also
  120. reversed.
  121.  
  122.     Thus, you can have one color for
  123. the screen, one for the background
  124. (often the black pixels on the
  125. screen), and another color for
  126. non-screen area of the screen. See the
  127. Cheering Crowd graphic of The Zuccinni
  128. Song for an example.
  129.  
  130.     Also, in that example, two mini
  131. screens are placed side by side,
  132. effectively doubline the "crowd."
  133.  
  134.     We have included a very simple
  135. Run It program that puts the
  136. mini-screen on the screen with a
  137. picture of a Commodorean celebrity.
  138. Look over the code to understand how
  139. it works.
  140.  
  141.     This module is at the heart of the
  142. Zoetrope movies on issue 246 -- and we
  143. will have more fun with it in the near
  144. future. If you would like to take a
  145. crack at making your own movies or
  146. mini-slide shows -- here is what you
  147. need.
  148.  
  149.  DMM
  150.  
  151.  
  152.