/* The source data is assumed to be in little-endian order in LRAM and is maintained in little-endian order when written to memory.  */
static void AscMemWordCopyPtrFromLram(PortAddr iop_base, ushort s_addr, uchar *d_buffer, int words)
/* The source data is assumed to be in little-endian order in LRAM and is maintained in little-endian order when written to memory.  */
static void AscMemWordCopyPtrFromLram(PortAddr iop_base, ushort s_addr, uchar *d_buffer, int words)
{
	int i;
	ushort word;
	AscSetChipLramAddr(iop_base, s_addr);
	for (i = 0; i < 2 * words; i += 2) {
		word = inpw(iop_base + IOP_RAM_DATA);
		d_buffer[i] = word & 0xff;
		d_buffer[i + 1] = (word >> 8) & 0xff;
	}
}