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

Function dummy_get

src/memory.cpp:379–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379uae_u32 dummy_get (uaecptr addr, int size, bool inst, uae_u32 defvalue)
380{
381 uae_u32 v = defvalue;
382
383#if FLASHEMU
384 if (addr >= 0xf00000 && addr < 0xf80000 && size < 2) {
385 if (addr < 0xf60000)
386 return flash_read(addr);
387 return 8;
388 }
389#endif
390#if ACA500x_DEVELOPMENT
391 if (addr == 0xb03000) {
392 return 0xffff;
393 }
394 if (addr == 0xb07000) {
395 return 0x0000;
396 }
397 if (addr == 0xb2f800) {
398 return 0xffff;
399 }
400 if (addr == 0xb3b800) {
401 return 0x0000;
402 }
403 if (addr == 0xb3f800) {
404 return currprefs.cpu_model > 68000 ? 0x0000 : 0xffff;
405 }
406 if (addr == 0xb0b000) {
407 return isideint() ? 0xffff : 0x0000;
408 }
409#endif
410
411 if ((size == sz_word || size == sz_long) && inst && maybe_map_boot_rom(addr)) {
412 if (size == sz_word)
413 return get_word(addr);
414 return get_long(addr);
415 }
416
417 if (gary_nonrange(addr) || (size > sz_byte && gary_nonrange(addr + (1 << size) - 1))) {
418 if (gary_timeout)
419 gary_wait(addr, size, false);
420 if (gary_toenb)
421 hardware_exception2(addr, 0, true, false, size);
422 return v;
423 }
424
425 return dummy_get_safe(addr, size, inst, defvalue);
426}
427
428static uae_u32 REGPARAM2 dummy_lget (uaecptr addr)
429{

Callers 13

dummy_lgetFunction · 0.85
dummy_lgetiFunction · 0.85
dummy_wgetFunction · 0.85
dummy_wgetiFunction · 0.85
dummy_bgetFunction · 0.85
cia_bgetFunction · 0.85
cia_wgetFunction · 0.85
clock_lgetFunction · 0.85
clock_wgetFunction · 0.85
clock_bgetFunction · 0.85
custom_wgetFunction · 0.85
custom_bgetFunction · 0.85

Calls 9

flash_readFunction · 0.85
isideintFunction · 0.85
maybe_map_boot_romFunction · 0.85
get_longFunction · 0.85
gary_nonrangeFunction · 0.85
gary_waitFunction · 0.85
hardware_exception2Function · 0.85
dummy_get_safeFunction · 0.85
get_wordFunction · 0.50

Tested by

no test coverage detected