TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: Leonard Erickson
from: MIKE ROSS
date: 2003-06-13 14:09:02
subject: FSM

"Leonard Erickson" wrote to "MIKE ROSS" (13 Jun 03  04:40:14)
 --- on the topic of "FSM"

 LE> I used the timer tick counter in segment 0040. Add the required number
 LE> of ticks to it to get the end time and if it was past the maximum
 LE> (midnight) value, subtract that value and set a flag so that the code
 LE> knows to ignore values much greater than the target.

 LE> Then just compare the stop count to the target count every time
 LE> through the loop.

When comparing the system time as a target there's the problem of the
program being suspended and when restarted just times out instantly.
While, if one keeps an internal counter, it will resume counting
undisturbed when the program restarts. There are pros and cons to each
method.

 Mike
 ****

... A user and his leisure time are soon parted...
--- Blue Wave/DOS v2.30
* Origin: Juxtaposition BBS, Telnet:juxtaposition.dynip.com (1:167/133)
SEEN-BY: 633/267 270
@PATH: 167/133 379/1 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.