/* Construction function for DMAGO instruction. This function fills the program buffer with the constructed instruction. */
static INLINE int XDmaPs_Instr_DMAGO(char *DmaProg, unsigned int Cn, u32 Imm, unsigned int Ns)
/* Construction function for DMAGO instruction. This function fills the program buffer with the constructed instruction. */
static INLINE int XDmaPs_Instr_DMAGO(char *DmaProg, unsigned int Cn, u32 Imm, unsigned int Ns)
{
	*DmaProg = 0xA0 | ((Ns << 1) & 0x02);
	*(DmaProg + 1) = (u8)(Cn & 0x07);
	XDmaPs_Memcpy4(DmaProg + 2, (char *)&Imm);
	return 6;
}