source: buchla-68k/libsm/memcpyw.c@ f806726

Last change on this file since f806726 was c59409e, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Volatile hardware accesses.

  • Property mode set to 100644
File size: 511 bytes
Line 
1/*
2 =============================================================================
3 memcpyw.c -- copy words
4 Version 2 -- 1987-06-15 -- D.N. Lynx Crowe
5
6 Copy vp2 to vp1, always copy n words.
7 Return pointer to vp1.
8 =============================================================================
9*/
10
11#include "ram.h"
12
13volatile void *memcpyw(volatile void *vp1, volatile void *vp2, int16_t n)
14{
15 volatile int16_t *sp1 = vp1;
16 volatile int16_t *sp2 = vp2;
17
18 while (--n >= 0)
19 *sp1++ = *sp2++;
20
21 return(vp1);
22}
Note: See TracBrowser for help on using the repository browser.