yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::emu::memory::dma Namespace Reference

Functions

void Reset (MemoryImpl *memory)
 
uint8_t Read (MemoryImpl *memory, uint16_t adr)
 
void Write (MemoryImpl *memory, uint16_t adr, uint8_t val)
 
void DoDma (SNES *snes, MemoryImpl *memory, int cpuCycles)
 
void HandleDma (SNES *snes, MemoryImpl *memory, int cpu_cycles)
 
void WaitCycle (SNES *snes, MemoryImpl *memory)
 
void InitHdma (SNES *snes, MemoryImpl *memory, bool do_sync, int cpu_cycles)
 
void DoHdma (SNES *snes, MemoryImpl *memory, bool do_sync, int cycles)
 
void TransferByte (SNES *snes, MemoryImpl *memory, uint16_t aAdr, uint8_t aBank, uint8_t bAdr, bool fromB)
 
void StartDma (MemoryImpl *memory, uint8_t val, bool hdma)
 

Function Documentation

◆ Reset()

◆ Read()

uint8_t yaze::app::emu::memory::dma::Read ( MemoryImpl * memory,
uint16_t adr )

Definition at line 44 of file dma.cc.

References yaze::app::emu::memory::MemoryImpl::dma_channels(), and yaze::app::emu::memory::MemoryImpl::open_bus().

Referenced by yaze::app::emu::SNES::Rread().

Here is the call graph for this function:

◆ Write()

void yaze::app::emu::memory::dma::Write ( MemoryImpl * memory,
uint16_t adr,
uint8_t val )

Definition at line 97 of file dma.cc.

References yaze::app::emu::memory::MemoryImpl::dma_channels().

Referenced by yaze::app::emu::SNES::Write().

Here is the call graph for this function:

◆ DoDma()

void yaze::app::emu::memory::dma::DoDma ( SNES * snes,
MemoryImpl * memory,
int cpuCycles )

Definition at line 161 of file dma.cc.

References yaze::app::emu::SNES::cpu(), yaze::app::emu::memory::MemoryImpl::dma_channels(), yaze::app::emu::SNES::SyncCycles(), TransferByte(), and WaitCycle().

Referenced by HandleDma().

Here is the call graph for this function:

◆ HandleDma()

◆ WaitCycle()

void yaze::app::emu::memory::dma::WaitCycle ( SNES * snes,
MemoryImpl * memory )

◆ InitHdma()

void yaze::app::emu::memory::dma::InitHdma ( SNES * snes,
MemoryImpl * memory,
bool do_sync,
int cpu_cycles )

◆ DoHdma()

void yaze::app::emu::memory::dma::DoHdma ( SNES * snes,
MemoryImpl * memory,
bool do_sync,
int cycles )

◆ TransferByte()

void yaze::app::emu::memory::dma::TransferByte ( SNES * snes,
MemoryImpl * memory,
uint16_t aAdr,
uint8_t aBank,
uint8_t bAdr,
bool fromB )

◆ StartDma()

void yaze::app::emu::memory::dma::StartDma ( MemoryImpl * memory,
uint8_t val,
bool hdma )

Definition at line 358 of file dma.cc.

References yaze::app::emu::memory::MemoryImpl::dma_channels(), and yaze::app::emu::memory::MemoryImpl::set_dma_state().

Referenced by yaze::app::emu::SNES::WriteReg().

Here is the call graph for this function: