chapter_cautions.html
2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<head>
<title>NINTENDO64 Sound Tools Programing Manual</title>
</head>
<body bgcolor="#d0d0d0" text="#000000" link="#008000" vlink="#008000">
<h1><font color="#000080">$B%W%m%0%i%_%s%0>e$NCm0U(B</font></h1>
<p>$B$3$N%i%$%V%i%j$r;HMQ$7$F%5%&%s%I$r<BAu$9$k:]$K!"%W%m%0%i%^$O0J2<$NE@$KCm0U$9$Y$-$G$9!#(B</p>
<ul>
<li> $B%W%m%0%i%^$O!"$9$Y$F$N%a%b%j%"%m%1!<%7%g%s$N$?$a$K!"%*!<%G%#%*%R!<%W$,==J,$KBg$-$$$3$H$r3N<B$K$7$F$*$+$J$1$l$P$J$j$^$;$s!#(B<br><br>
$B:G=*E*$J%3%s%U%#%0%l!<%7%g%s$N@_Dj$,7hDj$5$l$k$^$G!"%W%m%0%i%^$O$3$N%P%C%U%!$r:G=i$OB?$a$K3d$jEv$F$F$*$/$3$H$r?d>)$7$^$9!#@_Dj$,7h$^$C$?$J$i$P!"(B<a href="MusInitialize.html"><code>MusInitialize()</code></a>$B$NLa$jCM$r@5$7$$%5%$%:$r7hDj$9$k$?$a$K;HMQ$9$k$3$H$,$G$-$^$9!#!J$b$7%R!<%W%a%b%j$,%-%c%C%7%e%"%i%$%s$5$l$F$$$J$1$l$P!"(B<code>alHeapAlloc()</code>$B$OLa$jCM$,%5%$%:$K6O$+$J8m:9$r4^$s$@%a%b%j%-%c%C%7%e$r3d$jEv$F$k2DG=@-$,$"$k$3$H$KCm0U$7$^$7$g$&!#!K(B<br><br>
<strong>$BCm0U(B:</strong> $BI,MW$J%a%b%jNL$,(BNTSC/MPAL$B%7%9%F%`$H(BPAL$B%7%9%F%`$H$G$O0[$J$C$F$$$k$3$H$bF1MM$KCm0U$9$Y$-$G$7$g$&!#(BPAL$B%7%9%F%`$O!"%S%G%*%U%l!<%`$N;~4V$,D9$$J,$@$1!"$h$jB?$/$N%a%b%j$,I,MW$G$9!#(B<br><br> </li>
<li> $B%W%m%0%i%^$O%_%e!<%8%C%/%W%l%$%d!<$,%5%&%s%I$r@8@.$7$F$$$k4V$OBg$-$J(BDMA$B$rHr$1$k$Y$-$G$9!#(B<br><br>
$B%*!<%G%#%*%^%M!<%8%c!<$KI,MW$J%5%s%W%k$N(BDMA$B$r9T$&$N$K==J,$J;~4V$rM?$($k$?$a!"%W%m%0%i%^$O(B16k$B$h$j$bBg$-$J(BDMA$BE>Aw$r3+;O$7$J$$$3$H$r?d>)$7$^$9!#$3$l$O0J2<$N$h$&$J(BC$B%k!<%A%s$K$h$C$F9T$&$3$H$,$G$-$^$9!#(B<br><br>
<pre> void DmaRomToRam(void *src, void *dest, int length)
{
OSIoMesg io_mess;
OSMesg mess;
int size;
char *from, *to;
from = src;
to = dest;
while (length)
{
if (length>16*1024)
size = 16*1024;
else
size = length;
osInvalDCache(to, size);
osPiStartDma(&io_mess, OS_MESG_PRI_NORMAL, OS_READ,
(u32)from, to, size, &dmaMessageQ);
osRecvMesg(&dmaMessageQ, &mess, OS_MESG_BLOCK);
from += size;
to += size;
length -= size;
}
}</pre> </li>
</ul>
</body>
</html>