/* Download code from the shared RAM of an IOP.  */
void iop_download_code(uint iop_num, __u8 *code_start, uint code_len, __u16 shared_ram_start)
/* Download code from the shared RAM of an IOP.  */
void iop_download_code(uint iop_num, __u8 *code_start, uint code_len, __u16 shared_ram_start)
{
	if ((iop_num >= NUM_IOPS) || !iop_base[iop_num]) return;
	iop_loadaddr(iop_base[iop_num], shared_ram_start);
	while (code_len--) {
		*code_start++ = iop_base[iop_num]->ram_data;
	}
}