MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / control_reset

Function control_reset

core/control.c:232–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231
232void control_reset(void) {
233 memset(&control.ports, 0, sizeof control.ports);
234
235 control.privileged = 0xFFFFFF;
236 control.protectedStart = control.protectedEnd = 0xD1887C;
237 control.protectionStatus = 0;
238 control.stackLimit = 0;
239 control.cpuSpeed = 0;
240 control.flashUnlocked = false;
241 control.protectedPortsUnlocked = false;
242 control.off = false;
243 control.ports[0xF] = 0x2;
244
245 gui_console_printf("[CEmu] Control reset.\n");
246}
247
248bool control_save(FILE *image) {
249 return fwrite(&control, sizeof(control), 1, image) == 1;

Callers

nothing calls this directly

Calls 1

gui_console_printfFunction · 0.50

Tested by

no test coverage detected