📄 sound.html
字号:
<HTML>
<HEAD>
<TITLE>Mappy VM SDK - Sound</TITLE>
<META NAME="Author" CONTENT="Michael Noland">
<META NAME="Copyright" CONTENT="(C) 2001-2002 Bottled Light, Inc.">
</HEAD>
<BODY BGCOLOR="#FFFFFF" BACKGROUND="bgtile.jpg">
<H1>Sound Subsystem</H1>
<A NAME="link">
<P>
desc
</P>
<HR><!------------------------------------------------------------------------->
<A NAME="sound4cr1">
<H2>Sound Channel 4 Control Register 1</H2>
<TABLE BORDER="1" SUMMARY="Sound Channel 4 CR1">
<TR ALIGN="CENTER" BGCOLOR="#FFD050">
<TD>Offset</TD><TD>Name</TD><TD>Type</TD>
<TD>F</TD><TD>E</TD><TD>D</TD><TD>C</TD><TD>B</TD><TD>A</TD><TD>9</TD><TD>8</TD>
<TD>7</TD><TD>6</TD><TD>5</TD><TD>4</TD><TD>3</TD><TD>2</TD><TD>1</TD><TD>0</TD>
</TR>
<TR ALIGN="CENTER" BGCOLOR="#FFD050">
<TD>$78</TD>
<TD>SOUND4_CR1</TD>
<TD BGCOLOR="#C0FF70">Read Write</TD>
<TD BGCOLOR="#C0FF70" COLSPAN="4">Envelope Initial Latch</TD>
<TD BGCOLOR="#C0FF70">Envelope Direction</TD>
<TD BGCOLOR="#C0FF70" COLSPAN="3">Envelope Step Size</TD>
<TD BGCOLOR="#000000" COLSPAN="2"> </A></TD>
<TD BGCOLOR="#FFC0C0" COLSPAN="6">Sound Length (W)</TD>
</TR>
</TABLE>
<P>
<H3>Details</H3>
<UL>
<LI><STRONG>Bits 8-15</STRONG> control the <A HREF="#envelope">envelope</A> for channel 4, which behaves identically to the envelopes for other channels.</LI>
<LI>
<STRONG>Bits 0-5</STRONG> range from 0 to 63 and specify the sound length according to the following formula:
<BLOCKQUOTE><H3>(64 - length field)/256 seconds</H3></BLOCKQUOTE>
Which allows the length to be configured from 1/256 to 1/4 of a second
</LI>
</UL>
</P>
<A NAME="sound4cr2">
<H2>Sound Channel 4 Control Register 2</H2>
<TABLE BORDER="1" SUMMARY="Sound Channel 4 CR2">
<TR ALIGN="CENTER" BGCOLOR="#FFD050">
<TD>Offset</TD><TD>Name</TD><TD>Type</TD>
<TD>F</TD><TD>E</TD><TD>D</TD><TD>C</TD><TD>B</TD><TD>A</TD><TD>9</TD><TD>8</TD>
<TD>7</TD><TD>6</TD><TD>5</TD><TD>4</TD><TD>3</TD><TD>2</TD><TD>1</TD><TD>0</TD>
</TR>
<TR ALIGN="CENTER" BGCOLOR="#FFD050">
<TD>$78</TD>
<TD>SOUND4_CR2</TD>
<TD BGCOLOR="#C0FF70">Read Write</TD>
<TD BGCOLOR="#FFC0C0">Restart (W)</TD>
<TD BGCOLOR="#C0FF70">Continuous Output</TD>
<TD BGCOLOR="#000000" COLSPAN="6"> </TD>
<TD BGCOLOR="#C0FF70" COLSPAN="4">Clock Shift</TD>
<TD BGCOLOR="#C0FF70" COLSPAN="1">Sound Period</A></TD>
<TD BGCOLOR="#C0FF70" COLSPAN="3">Clock Divider</TD>
</TR>
</TABLE>
<P>
<H3>Details</H3>
<UL>
<LI><STRONG>Bits 8-15</STRONG> control the <A HREF="#envelope">envelope</A> for channel 4, which behaves identically to the envelopes for other channels.</LI>
<LI>
<STRONG>Bits 0-5</STRONG> range from 0 to 63 and specify the sound length according to the following formula:
<BLOCKQUOTE><H3>(64 - length field)/256 seconds</H3></BLOCKQUOTE>
Which allows the length to be configured from 1/256 to 1/4 of a second
</LI>
</UL>
</P>
<P>
<H3>Uses and examples</H3>
<UL>
<LI>writeme fixme todo findme</LI>
</UL>
</P>
<BLOCKQUOTE>
<EM>Example: A very simple interrupt handler.</EM>
<HR><TABLE BORDER="1" BGCOLOR="#FFFFFF"><TR><TD><PRE>
// have occured by looking at the IF register.
</PRE></TD></TR></TABLE></BLOCKQUOTE>
<HR><!------------------------------------------------------------------------->
<P ALIGN="center">Copyright © 2001 to 2002, Bottled Light, Inc.</P>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -