yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dma.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EMU_MEMORY_DMA_H
2#define YAZE_APP_EMU_MEMORY_DMA_H
3
4#include <cstdint>
5
7#include "app/emu/snes.h"
8
9namespace yaze {
10namespace emu {
11
12void ResetDma(MemoryImpl* memory);
13void HandleDma(Snes* snes, MemoryImpl* memory, int cpu_cycles);
14
15void WaitCycle(Snes* snes, MemoryImpl* memory);
16
17void InitHdma(Snes* snes, MemoryImpl* memory, bool do_sync, int cycles);
18void DoHdma(Snes* snes, MemoryImpl* memory, bool do_sync, int cycles);
19
20void TransferByte(Snes* snes, MemoryImpl* memory, uint16_t aAdr, uint8_t aBank,
21 uint8_t bAdr, bool fromB);
22
23uint8_t ReadDma(MemoryImpl* memory, uint16_t address);
24void WriteDma(MemoryImpl* memory, uint16_t address, uint8_t data);
25void StartDma(MemoryImpl* memory, uint8_t val, bool hdma);
26void DoDma(Snes* snes, MemoryImpl* memory, int cycles);
27
28} // namespace emu
29} // namespace yaze
30
31#endif // YAZE_APP_EMU_MEMORY_DMA_H
Implementation of the Memory interface for emulating memory in a SNES system.
Definition memory.h:118
SNES Emulation and debugging tools.
Definition apu.cc:13
void TransferByte(Snes *snes, MemoryImpl *memory, uint16_t aAdr, uint8_t aBank, uint8_t bAdr, bool fromB)
Definition dma.cc:331
void ResetDma(MemoryImpl *memory)
Definition dma.cc:12
void WriteDma(MemoryImpl *memory, uint16_t adr, uint8_t val)
Definition dma.cc:92
void HandleDma(Snes *snes, MemoryImpl *memory, int cpu_cycles)
Definition dma.cc:190
void WaitCycle(Snes *snes, MemoryImpl *memory)
Definition dma.cc:208
uint8_t ReadDma(MemoryImpl *memory, uint16_t adr)
Definition dma.cc:39
void DoDma(Snes *snes, MemoryImpl *memory, int cpuCycles)
Definition dma.cc:156
void StartDma(MemoryImpl *memory, uint8_t val, bool hdma)
Definition dma.cc:353
void InitHdma(Snes *snes, MemoryImpl *memory, bool do_sync, int cpu_cycles)
Definition dma.cc:216
void DoHdma(Snes *snes, MemoryImpl *memory, bool do_sync, int cycles)
Definition dma.cc:256
Main namespace for the application.
Definition controller.cc:18