yaze 0.2.0
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 app {
11namespace emu {
12namespace memory {
13namespace dma {
14
15void Reset(MemoryImpl* memory);
16void HandleDma(SNES* snes, MemoryImpl* memory, int cpu_cycles);
17
18void WaitCycle(SNES* snes, MemoryImpl* memory);
19
20void InitHdma(SNES* snes, MemoryImpl* memory, bool do_sync, int cycles);
21void DoHdma(SNES* snes, MemoryImpl* memory, bool do_sync, int cycles);
22
23void TransferByte(SNES* snes, MemoryImpl* memory, uint16_t aAdr, uint8_t aBank,
24 uint8_t bAdr, bool fromB);
25
26uint8_t Read(MemoryImpl* memory, uint16_t address);
27void Write(MemoryImpl* memory, uint16_t address, uint8_t data);
28void StartDma(MemoryImpl* memory, uint8_t val, bool hdma);
29void DoDma(SNES* snes, MemoryImpl* memory, int cycles);
30
31} // namespace dma
32} // namespace memory
33} // namespace emu
34} // namespace app
35} // namespace yaze
36
37#endif // YAZE_APP_EMU_MEMORY_DMA_H
void InitHdma(SNES *snes, MemoryImpl *memory, bool do_sync, int cpu_cycles)
Definition dma.cc:221
void TransferByte(SNES *snes, MemoryImpl *memory, uint16_t aAdr, uint8_t aBank, uint8_t bAdr, bool fromB)
Definition dma.cc:336
void DoHdma(SNES *snes, MemoryImpl *memory, bool do_sync, int cycles)
Definition dma.cc:261
void DoDma(SNES *snes, MemoryImpl *memory, int cpuCycles)
Definition dma.cc:161
void WaitCycle(SNES *snes, MemoryImpl *memory)
Definition dma.cc:213
void Reset(MemoryImpl *memory)
Definition dma.cc:17
void HandleDma(SNES *snes, MemoryImpl *memory, int cpu_cycles)
Definition dma.cc:195
void Write(MemoryImpl *memory, uint16_t adr, uint8_t val)
Definition dma.cc:97
uint8_t Read(MemoryImpl *memory, uint16_t adr)
Definition dma.cc:44
void StartDma(MemoryImpl *memory, uint8_t val, bool hdma)
Definition dma.cc:358
Definition common.cc:22