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

Function debug_get_executing_basic_prgm

core/debug/debug.c:315–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315bool debug_get_executing_basic_prgm(char *name) {
316 if (name == NULL) {
317 return false;
318 }
319
320 /* check if a basic program is executing */
321 if ((mem_peek_byte(DBG_BASIC_NEWDISPF) & DBG_BASIC_PROGEXECUTING_BIT) &&
322 (mem_peek_byte(DBG_BASIC_CMDFLAGS) & DBG_BASIC_CMDEXEC_BIT)) {
323
324 /* return the executing program */
325 virt_mem_cpy(name, DBG_BASIC_BASIC_PROG, 9);
326 name[9] = '\0';
327
328 return true;
329 } else {
330 return false;
331 }
332}
333
334#endif

Callers 3

debug_stepFunction · 0.85
debugBasicPrgmLookupMethod · 0.85
debugBasicGetPrgmNameMethod · 0.85

Calls 2

mem_peek_byteFunction · 0.85
virt_mem_cpyFunction · 0.85

Tested by

no test coverage detected