From a17902373dc3fd2f06f0796ed2621109cb4acdd3 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 6 Apr 2026 06:08:45 -0400 Subject: Precalculate timer intervals (in config segment; client gets them preset). 6780 bytes free. --- src/timers.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/timers.h (limited to 'src/timers.h') diff --git a/src/timers.h b/src/timers.h new file mode 100644 index 0000000..a3e41f8 --- /dev/null +++ b/src/timers.h @@ -0,0 +1,8 @@ +typedef struct { + char hz; /* 50 for PAL, 60 for NTSC */ + char one_tenth_sec; /* 5 for PAL, 6 for NTSC */ + unsigned int one_sec; /* 1 sec, "hz" times 60 */ + unsigned int net_ind_time; /* 3.7 sec (just what The_Doctor__ ordered) */ +} timers_t; + +#define timers (*(timers_t *)(0xf0)) -- cgit v1.2.3