home *** CD-ROM | disk | FTP | other *** search
- QUICK HACK and CREDITS
- Enclosed are different versions of the MAC fireworks screen saver
- J.SAFFER, uploaded in the file PYROSAVE.ARC (#11791). I played around with
- the subroutine called 'continue' and changed the loop counter values.
- I figured out that on a stock 520 w/TOS 1.4 a value of 4285 equals 1 minute,
- 8570 works for 2 minutes, 12855 for 3 minutes, etc... Download J.SAFFERs
- file for the complete source code.
-
-
-
- VERSIONS:
- SAVER_1.PRG delay for 1 minute
- SAVER_3.PRG delay for 3 minutes
- SAVER_10.prg delay for 10 minutes
- etc...
-
-
- THE CHANGE:
- Here is the modified line:
-
- continue:
- move.w vblanks,d0 ; get the vblanks counter value
- addq.w #1,d0 ; increment the counter
- move.w d0,vblanks ; store the vblanks counter value
- cmpi.w #4285,d0 ; see if the appropriate time has passed
- ^
- **** CHANGE THIS | TO A MULTIPLE OF 4285 for x number of minutes ******
-
-
- bne gohome ; otherwise skip it
-
- move.l newscreen,d0 ; get the screen address
- movea.l d0,a0 ; move the newscreen address into a0
- move.w #0,d0 ; set the loop counter to zero
-
-
- HOW COMPILED
- I had problems with the original saver.prg crashing with TURBOST
- ver 1.6. On a hunch I compiled it under MADMAC from the developer's
- kit using the following call: mac saver_1.s -p SAVER.PRG seems to
- work now with TURBOST.
-
- HOW TESTED:
- These were tested on a mono monitor ST only. I see no reason
- why they shouldn't work on a color system.
-
-
- ENJOY,
- Brian Hunt (DILITHIUM, GEnie)
- Aug 20, 1989
-