MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / get_byte_debug

Function get_byte_debug

src/debug.cpp:374–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374uae_u32 get_byte_debug (uaecptr addr)
375{
376 uae_u32 v = 0xff;
377 if (debug_mmu_mode) {
378 flagtype olds = regs.s;
379 regs.s = (debug_mmu_mode & 4) != 0;
380 TRY(p) {
381 if (currprefs.mmu_model == 68030) {
382 v = mmu030_get_generic (addr, debug_mmu_mode, sz_byte, MMU030_SSW_SIZE_B);
383 } else {
384 if (debug_mmu_mode & 1) {
385 bool odd = (addr & 1) != 0;
386 addr &= ~1;
387 v = mmu_get_iword(addr, sz_byte);
388 if (!odd)
389 v >>= 8;
390 else
391 v &= 0xff;
392 } else {
393 v = mmu_get_user_byte (addr, regs.s != 0, false, sz_byte, false);
394 }
395 }
396 } CATCH(p) {
397 } ENDTRY
398 regs.s = olds;
399 } else {
400 v = get_byte (addr);
401 }
402 return v;
403}
404uae_u32 get_word_debug (uaecptr addr)
405{
406 uae_u32 v = 0xffff;

Callers 15

dumpmem2Function · 0.70
listcheaterFunction · 0.70
deepcheatsearchFunction · 0.70
cheatsearchFunction · 0.70
print_task_infoFunction · 0.70
copyromdataFunction · 0.70
show_exec_listsFunction · 0.70
saveloadmemFunction · 0.70
searchmemFunction · 0.70
debugFunction · 0.70
mmu_hitFunction · 0.70
get_valueFunction · 0.70

Calls 1

get_byteFunction · 0.85

Tested by

no test coverage detected