home *** CD-ROM | disk | FTP | other *** search
- Modifying ClockMem
- ------------------
-
-
- *** Please see the file CONDITIONS in this directory. ***
-
-
- 0. General points.
-
- Before re-assembling (by running "Source" or "Source2" or whatever
- modified version of these you may have produced) you need to have
- run ClockMem, or at least the "Set" statements in its !Run. Otherwise
- it won't know where its files are meant to be.
-
-
- 1. Changing the templates.
-
- If you make any non-trivial changes to the template file, you will
- also need to change the source code, because some things are "wired
- in": the sizes of the templates, and of their indirected data, and
- some icon numbers.
-
- If you do this, you are strongly encouraged to keep copies of the
- original source code and template files. (If you rename anything,
- note that the source contains references to its own filename and
- to that of other "resource" files. Changing names may make the
- !runimage larger.)
-
- Things you'll probably need to change:
- - the DATA statements at the start of the program (maybe also the
- value of _NWindows, but if you change the number of windows you
- may have to make *lots* of changes)
- - several things under .not_iconbar and .not_set_clock (the most
- obscure is the MVN 8,#3 just before .not_now; also, don't forget
- the #13 under .setorunset)
- - the second word under .alm_icn
-
-
- 2. Changing the code.
-
- The first thing you'll need to do is to make my code smaller.
- This shouldn't be very hard; the first place I'd advise looking
- is in the two lumps of code following .update_sprite, which I'm
- sure could be better.
-
- If you need to make a lot more space, you can free quite a bit
- if you're prepared to put some of the init. code inside the space
- which is currently used for the templates and the sprite area.
- If you put the start of the .Init routine, up to but not including
- the loading of the sprite file, at the end of this region, it
- should fit happily. Just stick a branch to somewhere more civilised
- at the end...
-
- Don't bother trying to save space by making the templates smaller;
- the space they occupy is already being reused, apart from the
- indirected data which is about as small as it can be anyway.
-
- The source is based on a standard skeleton desktop application which
- I wrote a while ago. I've already removed quite a lot of dead wood,
- but there may be more.
-