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

Function fetch32_spr

src/custom.cpp:8933–8956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8931}
8932
8933static uae_u32 fetch32_spr(struct rgabuf *r)
8934{
8935 uae_u32 v;
8936 uaecptr p = r->pv;
8937 uaecptr pm = p & ~3;
8938 if (p & 2) {
8939 v = chipmem_lget_indirect(pm) & 0x0000ffff;
8940 v |= v << 16;
8941 } else if (fetchmode_fmode_spr & 2) { // optimized (fetchmode_fmode & 3) == 2
8942 v = chipmem_lget_indirect(pm) & 0xffff0000;
8943 v |= v >> 16;
8944 } else {
8945 v = chipmem_lget_indirect(pm);
8946 }
8947#ifdef DEBUGGER
8948 if (memwatch_enabled) {
8949 debug_getpeekdma_value_long(v, p - pm);
8950 }
8951 if (debug_dma) {
8952 record_dma_read_value_wide(v, false);
8953 }
8954#endif
8955 return v;
8956}
8957
8958static uae_u64 fetch64(struct rgabuf *r)
8959{

Callers 1

handle_rga_outFunction · 0.85

Calls 2

Tested by

no test coverage detected