MCPcopy Create free account
hub / github.com/NetHack/NetHack / show_borlandc_stats

Function show_borlandc_stats

outdated/sys/msdos/ovlinit.c:118–151  ·  view source on GitHub ↗
(win)

Source from the content-addressed store, hash-verified

116}
117
118void
119show_borlandc_stats(win)
120winid win;
121{
122 char buf[BUFSZ];
123
124 putstr(win, 0, "");
125 putstr(win, 0, "");
126 putstr(win, 0, "Memory usage stats");
127 putstr(win, 0, "");
128 putstr(win, 0, "");
129 Sprintf(buf, "Overlay buffer memory allocation: %ld bytes.",
130 memAlloc * 16L);
131 putstr(win, 0, buf);
132 Sprintf(buf, "_ovrbuffer = %u.", _ovrbuffer);
133 putstr(win, 0, buf);
134 Sprintf(buf, "Startup memory usage: 0x%X", ProgramSize);
135 putstr(win, 0, buf);
136 runAlloc = *(unsigned far *) MK_FP(_psp - 1, 0x03);
137 Sprintf(buf, "Current memory usage: 0x%X", runAlloc);
138 putstr(win, 0, buf);
139 if (emsstatus)
140 Sprintf(buf, "EMS search failed (%d).", emsstatus);
141 else
142 Sprintf(buf, "EMS search successful.");
143 putstr(win, 0, buf);
144#ifdef RECOGNIZE_XMS
145 if (xmsstatus)
146 Sprintf(buf, "XMS search failed (%d).", xmsstatus);
147 else
148 Sprintf(buf, "XMS search successful.");
149 putstr(win, 0, buf);
150#endif
151}
152
153#endif /* #ifdef RESIZE_OVL */
154#endif /* #ifdef __BORLANDC__ */

Callers 1

wiz_show_statsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected