home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 235 / 235.d81 / t.phil < prev    next >
Text File  |  2022-08-26  |  3KB  |  98 lines

  1. u
  2.   T H E   D R .   P H I L   T E S T
  3.            Program and Docs
  4.            by Dave Moorman
  5.  
  6.  
  7.     This test was sent to me by one of
  8. my esteemed email "goodie" suppliers.
  9. Of course, I took it immediately, and
  10. was blown away by it's accuracy.
  11.  
  12.     This HAD to become a LOADSTAR
  13. quiz. I thought of putting it in Quiz
  14. Meister, but the calculation of the
  15. resulting personality profile was a
  16. tad beyond that excellent program.
  17. This only goes to show that even
  18. though the "wheel" has been invented
  19. and good application programs do exist
  20. for most every need, one should be
  21. ready and able to whip together a
  22. mostly-BASIC program to do exactly
  23. what is wanted.
  24.  
  25.     PHIL depends on Mr.Mouse 3.0 for
  26. its good looks and easy design. The
  27. test, as received on the internet, was
  28. converted to Edstar format and marked
  29. up so the computer could easily read
  30. the various lines as needed.
  31.  
  32.     Now this is where Mr.Mouse is so
  33. dramatically useful: I have edited
  34. dozens of programs that read external
  35. data into the body of the program by
  36. opening the file and INPUT#8,A$(X). I
  37. have no problem with this if a few
  38. small pieces of data are needed. But
  39. when a lot of text is being used --
  40. get out Mr.Mouse!
  41.  
  42.     With Mr.Mouse, you can bload the
  43. entire Edstar file into any available
  44. chunk of memory -- even under ROM --
  45. then "rack" it with a Mr.Mouse
  46. command. This goes through the file in
  47. memory and appends string pointers for
  48. each line of text. Once racked, the
  49. program can call each line by its
  50. index number.
  51.  
  52.     With this feature alone, Mr.Mouse
  53. 3.0 pays for its 4K or 5K overhead!
  54. You have created a string array of any
  55. size -- without using BASIC string
  56. memory and in a fraction of the time
  57. required by INPUT#ing each line into
  58. the program.
  59.  
  60.     For this quiz, I marked the
  61. sections using single characters on
  62. lines immediately after the desired
  63. text. These characters can be trapped
  64. by an IF-THEN to stop the process. For
  65. the Personality Reports, I put a "*"
  66. on the line before each paragraph,
  67. then scanned the text for the marks
  68. and created an index array pointing to
  69. the next line.
  70.  
  71.     The Menu command of Mr.Mouse does
  72. most of the rest -- turning a printed
  73. list of options into an easy-to-use
  74. menu with just one command. In a
  75. matter of a couple of hours, PHIL was
  76. ready to go! The last tweak was to
  77. turn on the mouse arrow.
  78.  
  79.     To save space, I then Linked and
  80. Packed the whole thing using LINKER
  81. and PACKER, by Mr.Mouse creator Lee
  82. Novak. The beauty of his programs is
  83. that not only does the program take
  84. less space, but Lee's DISSOLVER can
  85. unpack the compilation into the
  86. orginal files -- extremely useful when
  87. one needs to fix something.
  88.  
  89.     Programming is just a matter of
  90. lining up commands in the right order
  91. to accomplish whatever you want. With
  92. Mr.Mouse 3.0 (or more extensive 2.1),
  93. you have the commands to do most of
  94. the work.
  95.  
  96.  DMM
  97.  
  98.  
  99.