From Jcurtis@VERT to ALL on Tue Jun 24 20:27:48 2025
By trial and error I discovered EMM calls enable interrupts. This can
cause havoc in a TSR where you need interrupts disabled. Finding these
bugs is not easy. My TSR enables interrupts part of the time, so I do
EMM calls there. Here's an example with comments.
void
next_irq (void)
{
int x;
next:
x = next (); /* service IRQs with */
enable (); /* interrupts enabled */
# ifndef noemm /* EMM call enables interrupts, do */
emm_get_page_map (e1); /* not do it before enable () above */ # endif
if (x) {
service_com_irqs (x);
} else
service_ticktock ();
# ifndef noemm
emm_set_page_map (e1);
# endif
disable ();
if (x)
mask_irq (NO, x);
if (iq[iz])
goto next;
}
* SLMR 2.1a *
* SLMR 2.1a *
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
Who's Online
Recent Visitors
Deepend
Fri Nov 20 00:13:31 2026
from
Calgary, Ab
via
HTTPS
Vintagegeek
Thu Nov 19 11:14:40 2026
from
Swarthmore, Pa
via
Telnet
Vintagegeek
Tue Nov 17 06:51:08 2026
from
Swarthmore, Pa
via
Telnet
Vintagegeek
Mon Nov 16 15:18:32 2026
from
Swarthmore, Pa
via
Telnet
System Info
Sysop:
deepend
Location:
Calgary, Alberta
Users:
326
Nodes:
10 (0
/
10)
Uptime:
81:02:22
Calls:
2,755
Files:
6,698
D/L today:
12 files
(10,130K bytes)
Messages:
498,022
Synchronet Oneliners
Dundee@rdbbs Mon Oct 19 16:38:50 2026 The Dude abides...
Vintagegeek@rdbbs Sun Nov 1 13:54:14 2026 November is here
Vintagegeek@rdbbs Fri Nov 6 11:28:18 2026 His r Hers Golf Clubs
Vintagegeek@rdbbs Sun Nov 15 08:19:35 2026 back online
Vintagegeek@rdbbs Mon Nov 16 15:18:25 2026 picit0
Vintagegeek@rdbbs Tue Nov 17 06:50:40 2026 MegaSlots and Lemonade