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

Function record_dma_read

src/debug.cpp:2603–2630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2601}
2602
2603void record_dma_read(uae_u16 reg, uae_u32 addr, int type, int extra)
2604{
2605 dma_record_init();
2606 if (!dma_record_data)
2607 return;
2608
2609 struct dma_rec *dr = &dma_record_data[dma_record_cycle];
2610
2611 if (dr->reg != 0xffff) {
2612 if (dr->reg != reg) {
2613 dma_conflict(dr->vpos[0], dr->hpos, dr, reg, false);
2614 dr->cf_reg = reg;
2615 dr->cf_addr = addr;
2616 }
2617 return;
2618 }
2619 dr->reg = reg;
2620 dr->dat = 0;
2621 dr->addr = addr;
2622 dr->type = type;
2623 dr->extra = extra;
2624 dr->intlev = regs.intmask;
2625 dr->ipl = regs.ipl_pin;
2626 dr->end = false;
2627
2628 last_dma_rec = dr;
2629 debug_mark_refreshed(dr->addr);
2630}
2631
2632static bool get_record_dma_info(struct dma_rec *drs, struct dma_rec *dr, TCHAR *l1, TCHAR *l1b, TCHAR *l1c, TCHAR *l2, TCHAR *l3, TCHAR *l4, TCHAR *l5, TCHAR *l6, uae_u32 *split, int *iplp)
2633{

Callers 7

record_dma_blitFunction · 0.85
dmal_emu_diskFunction · 0.85
dmal_emu_audioFunction · 0.85
custom.cppFile · 0.85
handle_rga_outFunction · 0.85
wait_cpu_cycle_readFunction · 0.85

Calls 3

dma_record_initFunction · 0.85
dma_conflictFunction · 0.85
debug_mark_refreshedFunction · 0.85

Tested by

no test coverage detected