diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-04-06 06:08:45 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-04-06 06:08:59 -0400 |
| commit | a17902373dc3fd2f06f0796ed2621109cb4acdd3 (patch) | |
| tree | 7c2bac0d8fca91b1916e72a79fef5a3b3520c6ad /src/main.c | |
| parent | e00d109f7997ea3c238677a28271ced8fa8f9d4e (diff) | |
| download | fujinet-chat-a17902373dc3fd2f06f0796ed2621109cb4acdd3.tar.gz | |
Precalculate timer intervals (in config segment; client gets them preset). 6780 bytes free.
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -17,6 +17,7 @@ #include "config.h" #include "kgetc.h" #include "indic8.h" +#include "timers.h" unsigned char err; // error code of last operation. unsigned char trip = 0; // if trip == 1, fujinet is asking us for attention. @@ -24,7 +25,6 @@ char old_enabled = 0; // were interrupts enabled for old vector void *old_vprced; // old PROCEED vector, restored on exit. unsigned int rxbuflen; // RX buffer length unsigned int txbuflen; // TX buffer length -char hz; /* 50 for PAL, 60 for NSTC */ char reconnect_timeout = 1; extern void ih(); // defined in intr.s @@ -150,7 +150,7 @@ void reconnect(void) { OS.cdtmf3 = OS.ch = 0xff; if(reconnect_timeout) { - OS.cdtmv3 = reconnect_timeout * hz; + OS.cdtmv3 = reconnect_timeout * timers.hz; scr_print_current(" or wait "); scr_cur_printnum(reconnect_timeout); scr_print_current(" sec"); @@ -175,8 +175,6 @@ void main(void) { OS.color3 = 0x46; /* red for highlight */ OS.noclik = config.disable_keyclick; - hz = (GTIA_READ.pal & 0x0e) ? 60 : 50; - edbox_clear(); scr_init(); init_channels(); |
