diff options
author | nyan <nyan@FreeBSD.org> | 1999-11-16 12:21:14 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 1999-11-16 12:21:14 +0000 |
commit | dd5693237d76797f8c7fb54263c9a72eac5cd081 (patch) | |
tree | a0796851c086a554907fe1dc169929cb032daee7 /sys/pc98 | |
parent | 13ed27c1ac224e3cd08385be743ebfffd8341bdc (diff) | |
download | FreeBSD-src-dd5693237d76797f8c7fb54263c9a72eac5cd081.zip FreeBSD-src-dd5693237d76797f8c7fb54263c9a72eac5cd081.tar.gz |
Sync with sys/i386/isa/pcaudio.c revision 1.57.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/pcaudio.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/sys/pc98/pc98/pcaudio.c b/sys/pc98/pc98/pcaudio.c index 8c4c8e9..f306860 100644 --- a/sys/pc98/pc98/pcaudio.c +++ b/sys/pc98/pc98/pcaudio.c @@ -188,18 +188,13 @@ static void pca_continue __P((void)); static void pca_init __P((void)); static void pca_pause __P((void)); -static __inline void -conv(const void *table, void *buff, unsigned int n) +static void +conv(const unsigned char *table, unsigned char *buff, unsigned n) { - __asm__("1:\tmovb (%2), %3\n" - "\txlatb\n" - "\tmovb %3, (%2)\n" - "\tinc %2\n" - "\tdec %1\n" - "\tjnz 1b\n" - : - :"b" (table), "c" (n), "D" (buff), "a" ((char)n) - :"bx","cx","di","ax"); + unsigned i; + + for (i = 0; i < n; i++) + buff[i] = table[buff[i]]; } |