home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / misc / mouse.lbr / FILES.MZE / FILES.MSE
Encoding:
Text File  |  1988-07-12  |  8.0 KB  |  319 lines

  1. ~
  2. ~ This program summarizes the content of the files in MOUSE.LBR.
  3. ~
  4. ~ Updated  02/05/88  Note: Invokes HELP.MSE
  5. ~
  6. 1 v :   ~ Make true
  7. (
  8. v. ^
  9. #Z;
  10. "!
  11.           FILES.MSE as of 02/05/88
  12.  
  13.     A. Credit, date of last update, and a plea
  14.     B. An ASCII table generation program           
  15.     C. Coconuts and Missionaries
  16.     D. Online newsletters
  17.     E. The Odd House problem
  18.     F. The Help system 
  19.     G. Programs which self-generate                            
  20.     H. The Mouse interpreter                       
  21.     I. The numbers program                         
  22.     J. Old MacDonald Had A Farm     
  23.     K. Got something you've written ????          
  24.     L. Mouse program to test the interpreter       
  25.     M. Solving linear equations                    
  26.     N. Drawing a Mouse on your screen              
  27.    
  28.     X. Exit. 
  29.                                      
  30. "    
  31. ?' r :
  32. r. 'a 1 - > [r. 32 - r :]     ~ Make upper case if necessary
  33.  
  34. r. 'A = [#A;]   ~ call appropriate text module
  35. r. 'B = [#B;]
  36. r. 'C = [#C;]
  37. r. 'D = [#D;]
  38. r. 'E = [#E;]
  39. r. 'F = [#F;]
  40. r. 'G = [#G;]
  41. r. 'H = [#H;]
  42. r. 'I = [#I;]
  43. r. 'J = [#J;]
  44. r. 'K = [#K;]
  45. r. 'L = [#L;]
  46. r. 'M = [#M;]
  47. r. 'N = [#N;]
  48.  
  49. r. 'X = [0 v :]
  50. )
  51.  
  52. $A
  53. #Z;
  54. "
  55. MOUSE.LBR was built by Lee R. Bradley and released to the Public 
  56. Domain on 02/05/88.
  57.  
  58. My address and telephone number are
  59.  
  60. Lee R. Bradley, Mouse House Software
  61. 24 East Cedar Street, Newington, CT  06111
  62.  
  63. (203) 666-3139, (203) 665-1100 (PBBS/RCP/M)
  64.  
  65. I would appreciate a check for whatever you feel this is worth.
  66. I think it's worth at least 15 dollars.  Enjoy" '!!'
  67. "!"
  68. ?'
  69. @
  70.  
  71. $B
  72. #Z;
  73. "
  74. ASCII.COM 
  75. ASCII.MZE   (Crunched form of ASCII.MSE)
  76.  
  77. This  program  will  generate an ASCII  table,  showing  decimal, 
  78. hexadecimal and character values for the 128  possibilities.  You can 
  79. get a 1, 2, 3, 4 or 5 column table.   4 or 5 are nice if you put  a 
  80. dot matrix printer in compressed character mode  first, and  then hit 
  81. CTRL-P (output to printer as well as screen) before running the 
  82. program.
  83.  
  84. Options 4 and 5 wrap-around on the CRT.  Ask for a 1,2 or 3 column 
  85. table for screen viewing.
  86. ... 
  87.  
  88. "
  89. ?'
  90. #Z;
  91. "
  92. ASCII.COM is an executable form of ASCII.MSE. It was  produced by 
  93. running the Mouse interpreter against  ASCII.MSE and then by typing
  94.  
  95. A>SAVE 16 ASCII.COM
  96.  
  97. after the program finished running.  The number of pages to save 
  98. varies with the size of the Mouse program.  The interpreter itself 
  99. requires 8 pages (2 K).  A conservative rule would be this:  Take the 
  100. size of the .MSE source file (in K), multiply it by 4 and add 8 (for 
  101. the interpreter) to the result.  In ASCII.MSE's case, (2 * 4) + 8 = 16 
  102. pages.
  103.      
  104. "
  105. ?'
  106. @
  107.  
  108. $C
  109. #Z;
  110. "
  111. COCONUT.MZE   (Crunched form of COCONUT.MSE)
  112.  
  113. This is a fairly ambitious program which solves a silly little problem 
  114. about a bunch of missionaries who try to divvy up a bunch of coconuts. 
  115. The more you run it, the more you'll see it can do.   The original 
  116. version was about 10 lines long.  I got a little carried away.  Study 
  117. the source and run it frequently.  If you understand this one, you're 
  118. on your way to being a Mouse programmer.
  119. "
  120. ?'
  121. @
  122.  
  123. $D
  124. #Z;
  125. "
  126. CCP/M.LZR   (Crunched form of CCP/M.LTR)
  127.  
  128. This program doesn't have an extension of .MSE but it is an executable 
  129. Mouse program.  It is an online newsletter as well (thus the .LTR 
  130. extension).  It is included in this package to show how easy it is to 
  131. create menus in Mouse.  (Actually, it is a skeleton for an online 
  132. newsletter.  I've used it once and it worked very well.  Add in your 
  133. own text.  You could even branch to other Mouse modules from it...)
  134. "
  135. ?'
  136. @
  137.     
  138. $E
  139. #Z;
  140. "
  141. ODD.MZE   (Crunched form of ODD.MSE)
  142.  
  143. One of the articles in the online newsletter included in this package 
  144. (CCP/M.LTR) used to mention a Programming Contest.  This little 
  145. program solved an Odd House problem.  See also SELFGEN.*.
  146. "
  147. ?'
  148. @
  149.  
  150. $F
  151. #Z;
  152. "
  153. FILES.MZE      (Crunched form of FILES.MSE)  (This file)
  154. HELP.MZE       (Crunched form of HELP.MSE) 
  155. MOUSE.AZT      (Crunched form of MOUSE.ART)  (An article on the Mouse language)
  156.  
  157. HELP.MSE summarizes the instruction set of Mouse.  The article gives 
  158. an overview of the language.  See also NUMBERS.MSE.
  159.  
  160. Would you like to enter HELP.MSE now ? (Y/N) " ?' r :
  161. "!"
  162. r. 'Y - r. 'y - * 0 = 
  163. [
  164. #Z;
  165. &HELP&
  166. ]
  167.  
  168. @
  169.  
  170. $G
  171. #Z;
  172. "
  173. SELFGEN.DZC   (Crunched form of SELFGEN.DOC)
  174. SELFGEN.MZE   (Crunched form of SELFGEN.MSE)
  175.  
  176. Ever tried to write a program which when run prints out its own source 
  177. code?  Not easy to do in Mouse, but I finally got it to go.  The .DOC 
  178. file has the background and also an MBASIC solution.
  179. "
  180. ?'
  181. @
  182.  
  183. $H
  184. #Z;
  185. "
  186. MOUSE.COM     Mouse interpreter (Z-80) 
  187. MOUSE.MZC     (Crunched form of MOUSE.MAC)  (Source code.
  188.  
  189. This is the Mouse interpreter. 
  190.      
  191. See Peter Grogono's 'Mouse: a language  for  microcomputers', 1983, 
  192. Petrocelli Press.  I have copies of this if you need it.  It is 
  193. somewhat difficult to find copies of this.
  194.  
  195. The Z-80 interpreter is a fairly ambitious effort.  It shows  just how 
  196. much can be packed into 2 K bytes,  the size of the assembled code.  
  197. Programs of about 16 K bytes of source code (plus comments) may be 
  198. interpreted.
  199. "
  200. ?'
  201. @
  202.  
  203. $I
  204. #Z;
  205. "
  206. NUMBERS.MZE   (Crunched form of NUMBERS.MSE)
  207.  
  208. This is a good  starter program and illustrates  all  the  basic 
  209. constructs of Mouse;  I/O,  loops,  the if construct, arithmetic and 
  210. subroutines.
  211. "
  212. ?'  
  213. @
  214.  
  215. $J
  216. #Z;
  217. "
  218. OLDMACDO.MZE    (Crunched form of OLDMACDO.MSE)
  219.  
  220. Peter Grogono wrote this little gem. Difficult to follow, but fun to 
  221. run, run it when you want to entertain yourself,  or a child.  The 
  222. recursive structure of a famous nursery rhyme is captured by this fun 
  223. program.
  224. "
  225. ?'
  226. @
  227.  
  228. $K
  229. #Z;
  230. "
  231. If you like Mouse and have written something you'd like to share why 
  232. don't you call my PBBS/RCP/M (203) 665-1100 and send it along?  I 
  233. would enjoy hearing from you.
  234. "
  235. ?'
  236. @
  237.  
  238. $L
  239. #Z;
  240. "
  241. TEST.MZE    (Crunched form of TEST.MSE)
  242.  
  243. This exercises the interpreter itself and is another good program to 
  244. study when you're learning the language.  It prints out  lines like
  245.  
  246.         1000=1000=1000=1000 etc.
  247.  
  248. Each 1000 is computed by a different method.
  249. "
  250. ?'
  251. @       
  252.  
  253. $M
  254. #Z;
  255. "
  256. SOLVE.MZE    (Crunched form of SOLVE.MSE)
  257.  
  258. This solves  a system of 3 equations in 3 unknowns.  The user  is 
  259. provided  with  a  data entry form.  This form uses  a  macro  to 
  260. position the cursor at a specified row and column and is therfore 
  261. terminal  hardware  specific.  ADM-3A escape sequences  are  used 
  262. here.  This  macro  is the work horse in Z80.MSE  as well  (which 
  263. see).  The 12 numbers entered  (9 coefficients, 3 right-hand-side 
  264. values)  are manipulated to give the  exact  and unique answer to the 
  265. system, if it exists.
  266. ...  
  267.  
  268. "
  269. ?'
  270. #Z;
  271. "
  272. Try writing a program which solves the system below:
  273.  
  274.        38x  -21y   +16z  = -8
  275.         3x  +10y    -1z  =  4
  276.        -8x   -4y   +11z  = 18 
  277.  
  278. (exact,  formatted, mixed number answers, please) and see if you can 
  279. do it in 4 K.  The hardest part of this program was the  line which 
  280. printed the answer. For the system above, it gives
  281.       
  282.       x = -2682/5641
  283.       y = 3932/5641
  284.       z = 1 3069/5641
  285. "
  286. ?'
  287. @
  288.  
  289. $N
  290. #Z;
  291. "
  292. Z80.MZE   (Crunched form of Z80.MSE)
  293.  
  294. This program draws a Mouse on the screen. Kaypro escape sequences are 
  295. used.
  296.  
  297. It consists mostly of a bunch of row and column coordinates which tell 
  298. the  cursor where to position itself before  plotting.  The letter  Z  
  299. and  the  numbers  8 and  0  are  each  drawn  with  a corresponding  
  300. macro  as  is the  mouse  itself.  Horizontal  and vertical  line  
  301. drawing macros were written to draw the  straight line segments in the 
  302. figure. A macro which does nothing but pause a specified number of 
  303. seconds was written to give the viewer time to see the figure, once 
  304. drawn.
  305. "
  306. ?'
  307. @
  308.  
  309. $Z     ~ Universal clear screen macro
  310. 'Z '@ - !'   ~ Just for ADM-3A , won't hurt others, hopefully ...
  311. ~ Above is clever (and readable) way of coding ^Z 
  312. 24 w :
  313. (
  314. w. ^
  315. 'J '@ - !'
  316. w. 1 - w :
  317. )
  318. @
  319.