Contents |
Effect
Writes a value in a specific SCC or SCC+ register.
Note: This instruction is similar to the SOUND instruction for the PSG.
Syntax
CALL SCC (<SCCregister>,<Value>)
Parameters
<SCCregister> is the register number (0-15) to write. It can be a variable or an expression.
<Value> is a value whose limits depend on the register to write (see Registers Description below). It can be a variable or an expression.
Registers Description
Register | Description | Values |
---|---|---|
0 | Least signifiant bits of channel A frequency | 0~255 |
1 | Most significant bits of channel A frequency | 0~15 |
2 | Least significant bits of channel B frequency | 0~255 |
3 | Most significant bits of channel B frequency | 0~15 |
4 | Least significant bits of channel C frequency | 0~255 |
5 | Most significant bits of channel C frequency | 0~15 |
6 | Least significant bits of channel D frequency | 0~255 |
7 | Most significant bits of channel D frequency | 0~15 |
8 | Least significant bits of channel E frequency | 0~255 |
9 | Most significant bits of channel E frequency | 0~15 |
10 | Volume of channel A | 0~15 |
11 | Volume of channel B | 0~15 |
12 | Volume of channel C | 0~15 |
13 | Volume of channel D | 0~15 |
14 | Volume of channel E | 0~15 |
15 | On/Off switch for channels A to E | 0~15 |
You can find more info here: http://bifi.msxnet.org/msxnet/tech/scc
Related to
CALL FADE, CALL INIPSG, CALL INISCC, CALL PLAY, CALL RISE, SOUND