home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / c / clockmem / !ClockMem / ADVICE < prev    next >
Text File  |  1994-06-24  |  2KB  |  61 lines

  1. Modifying ClockMem
  2. ------------------
  3.  
  4.  
  5. *** Please see the file CONDITIONS in this directory. ***
  6.  
  7.  
  8. 0. General points.
  9.  
  10. Before re-assembling (by running "Source" or "Source2" or whatever
  11. modified version of these you may have produced) you need to have
  12. run ClockMem, or at least the "Set" statements in its !Run. Otherwise
  13. it won't know where its files are meant to be.
  14.  
  15.  
  16. 1. Changing the templates.
  17.  
  18. If you make any non-trivial changes to the template file, you will
  19. also need to change the source code, because some things are "wired
  20. in": the sizes of the templates, and of their indirected data, and
  21. some icon numbers.
  22.  
  23. If you do this, you are strongly encouraged to keep copies of the
  24. original source code and template files. (If you rename anything,
  25. note that the source contains references to its own filename and
  26. to that of other "resource" files. Changing names may make the
  27. !runimage larger.)
  28.  
  29. Things you'll probably need to change:
  30.  - the DATA statements at the start of the program (maybe also the
  31.    value of _NWindows, but if you change the number of windows you
  32.    may have to make *lots* of changes)
  33.  - several things under .not_iconbar and .not_set_clock (the most
  34.    obscure is the MVN 8,#3 just before .not_now; also, don't forget
  35.    the #13 under .setorunset)
  36.  - the second word under .alm_icn
  37.  
  38.  
  39. 2. Changing the code.
  40.  
  41. The first thing you'll need to do is to make my code smaller.
  42. This shouldn't be very hard; the first place I'd advise looking
  43. is in the two lumps of code following .update_sprite, which I'm
  44. sure could be better.
  45.  
  46. If you need to make a lot more space, you can free quite a bit
  47. if you're prepared to put some of the init. code inside the space
  48. which is currently used for the templates and the sprite area.
  49. If you put the start of the .Init routine, up to but not including
  50. the loading of the sprite file, at the end of this region, it
  51. should fit happily. Just stick a branch to somewhere more civilised
  52. at the end...
  53.  
  54. Don't bother trying to save space by making the templates smaller;
  55. the space they occupy is already being reused, apart from the
  56. indirected data which is about as small as it can be anyway.
  57.  
  58. The source is based on a standard skeleton desktop application which
  59. I wrote a while ago. I've already removed quite a lot of dead wood,
  60. but there may be more.
  61.