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

Function fetch16

src/custom.cpp:8881–8906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8879}
8880
8881static uae_u16 fetch16(struct rgabuf *r)
8882{
8883 uaecptr p = r->pv;
8884 uae_u16 v;
8885 if (aga_mode) {
8886 // AGA always does 32-bit fetches, this is needed
8887 // to emulate 64 pixel wide sprite side-effects.
8888 uae_u32 vv = chipmem_lget_indirect(p & ~3);
8889 if (p & 2) {
8890 v = (uae_u16)vv;
8891 } else {
8892 v = vv >> 16;
8893 }
8894 } else {
8895 v = chipmem_wget_indirect(p);
8896 }
8897#ifdef DEBUGGER
8898 if (memwatch_enabled) {
8899 debug_getpeekdma_value(v);
8900 }
8901 if (debug_dma) {
8902 record_dma_read_value(v);
8903 }
8904#endif
8905 return v;
8906}
8907
8908static uae_u32 fetch32_bpl(struct rgabuf *r)
8909{

Callers 2

do_scandoubleFunction · 0.85
handle_rga_outFunction · 0.85

Calls 2

debug_getpeekdma_valueFunction · 0.85
record_dma_read_valueFunction · 0.85

Tested by

no test coverage detected