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

-=> Quoting MIKE ROSS to Leonard Erickson <=-

 MR> "Leonard Erickson" wrote to "MIKE ROSS" (13 Jun
03  04:40:14)
 MR> --- 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.

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

Well, the stuff I was doing, the program was on a single tasking DOS
box, and in any case, if it *had* been suspended, having the time out
"instantly" end was appropriate. 

--- FMailX 1.60
* Origin: Shadowgard (1:105/50)
SEEN-BY: 633/267 270
@PATH: 105/50 360 106/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™.