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

Function dma_record_init

src/debug.cpp:1784–1797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1782}
1783
1784static void dma_record_init(void)
1785{
1786 if (!dma_record_data) {
1787 dma_record_data = xcalloc(struct dma_rec, NR_DMA_REC_MAX + 2);
1788 dma_record_lines1 = xcalloc(struct dma_rec*, NR_DMA_REC_LINES_MAX);
1789 dma_record_lines2 = xcalloc(struct dma_rec*, NR_DMA_REC_LINES_MAX);
1790 for (int i = 0;i < NR_DMA_REC_MAX; i++) {
1791 struct dma_rec *dr = &dma_record_data[i];
1792 dr->reg = 0xffff;
1793 dr->cf_reg = 0xffff;
1794 dr->hpos = -1;
1795 }
1796 }
1797}
1798
1799void record_dma_reset(int start)
1800{

Callers 5

record_dma_resetFunction · 0.85
record_dma_writeFunction · 0.85
record_rom_accessFunction · 0.85
record_cia_accessFunction · 0.85
record_dma_readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected