diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 1999-11-16 12:21:14 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 1999-11-16 12:21:14 +0000 |
| commit | 95b4d05313ec3f143870026d6819a62c7727cdc9 (patch) | |
| tree | a0796851c086a554907fe1dc169929cb032daee7 | |
| parent | 8368e7fe41ed73a40565992edd6c41db7e713808 (diff) | |
Notes
| -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 8c4c8e970d31..f3068600a31f 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]]; } |
