src/cpu/cpu.cc
/*
 * Starts an OAM DMA transfer at the given address.
 */
Starts an OAM DMA transfer at the given address.
Starts an OAM DMA transfer at the given address .
void Cpu::StartDma(DataWord addr) {
  dma_addr_.w[WORD_HI] = addr;
  dma_cycles_remaining_ = DMA_CYCLE_LENGTH;
  if (!cycle_even_) { dma_cycles_remaining_++; }
  return;
}
void Cpu :: StartDma ( DataWord addr ) { dma_addr_ . w [ WORD_HI ] = addr ; dma_cycles_remaining_ = DMA_CYCLE_LENGTH ; if ( ! cycle_even_ ) { dma_cycles_remaining_ ++ ; } return ; }
Starts an OAM DMA transfer at the given address.
Starts an OAM DMA transfer at the given address .
// Starts the dma transfer by setting the high CPU memory byte and reseting // the cycle counter. // If the CPU is on an odd cycle, the DMA takes one cycle longer.