TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: BARRY BLOCK
from: BRENT FOSTER
date: 1997-05-26 00:00:00
subject: implode (cls)

BB>Hello all, I saw a shareware implode screen (cls) using way to many bytes,
BB>so I tried to see what I could do. This is a first, maybe last draft :-)
BB>One problem is, a single timer tick is too long.
BB>What else can I use as a timer so that the speed is the same on all 
machines
You just a programable timer..... no problem.  I just happen to have the
right book for you here then. Pc Programmer's Guide to Low-Level
Functions and Interrupts, by Marus Johnson...
anyways..  int 08H is called 18.2 times a second... that might help, by
if you intercept this vector you MUST call the original procedure 18.2
times a second.. It takes  care of a few things for you.
There is a PIC (programmable Interval Timer) on the PC here's how to
program for it.
Port
40H     Counter 1
41H     counter 2
42H     counter 3
43H     CONTROL WORD
PIT CONTROL WORD FIELDS
BITS
7-6         00 Select counter 0
            01    "     "     1
            10    "     "     2
            11 ILLEGAL
5-4         00 Counter latch command
            01 Read/write LSB only
            10 Read/Write MSB only
            11 Read/Write LSB THEN MSB
3-1         Mode 0 to 5
            110  Mode 2 but not recommended
            111  Mode 3 but not recommended
0           0 Binary count
            1 BCD count
Modes   0  interrupt on terminal count
        1  hardware triggerable one-shot
        2  rate generator
        3  square wave mode
        4  Software triggered strobe
        5  Hardware triggered strobe
Continuded in next MSG >>>>>>>>>>>>>>>
___
 X OLX 2.1 TD X All hope abandon, ye who enter messages here.
--- Maximus 2.02
---------------
* Origin: Digital Encounters * Kamloops BC Canada 250/374-6168 (1:353/710)

SOURCE: echomail via exec-pc

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™.