★ SOUND Manual ★ SCSP / DSP Assembler User's Manual#COEF ← Label indicating the start of coefficient symbol definition -------------------------- (Coefficient symbol definition formula) -------------------------- #ADRS ← Label indicating the start of address symbol definition -------------------------- (Address symbol definition formula) -------------------------- #PROG ← Label indicating the start of program description -------------------------- (Address symbol definition formula) -------------------------- #END ← Label indicating the end of program description
……………………………………………… (Symbol name) = (Initial value) ………………………………………………
caution![]() | One symbol can be defined for each line of the definition formula, and the initial value must be given to each symbol. |
|---|
| Coefficient symbol | : 63 pieces |
| Address symbol | : 32 pieces |
caution![]() | This reserved symbol "ZERO" can be used in the program part of the source code created by the user without being defined in the coefficient definition part, but its value can be used (on the executable program or on the DSP hardware on which it is loaded). Do not change (under any circumstances, such as above). |
|---|
Definition part | Notation mode | Identifier | example | Conversion method | Example conversion result |
|---|---|---|---|---|---|
#COFF | Hexadecimal notation | [& H] | & HOFFF | No conversion | & HFFF |
Decimal notation | None | one two Three | Decimal → hexadecimal | & H007B | |
%labels | [%] | % 50 | (1) | & H0800 | |
Decimal notation | [.] | 0.25 | (2) | & H0400 | |
#ADRS | Hexadecimal notation | [& H] | & H8000 | No conversion | & H8000 |
Decimal notation | None | one two Three | Decimal → hexadecimal | & H007B | |
Millisecond notation | [Ms] | ms300.0 | (3) | & H33AE |
Definition part | Actual data format |
|---|---|
#COEF | Hexadecimal in 13bit2's complement format |
#ADRS | Hexadecimal in 16-bit linear format |
Definition part | Notation mode | range | Form |
|---|---|---|---|
# COEF | Hexadecimal notation | 1000 ~ 0FFF [hex] | Hexadecimal signed integer (13 bits wide) |
Decimal notation | −4096 to +4095 [dec] | Decimal signed integer | |
%labels | -100 to +100 [%] | Decimal signed integer | |
Decimal notation | −1.0 to +0.99975 [dec] | Decimal signed decimal (up to 1 decimal digit, 5 decimal digits) | |
# ADRS | Hexadecimal notation | 0 to FFFF [hex] | Hexadecimal unsigned integer (16-bit width) |
Decimal notation | 0 to 65535 [deci] | Decimal unsigned integer | |
Millisecond notation | 0.0 to 1486.0 [ms] | Decimal unsigned decimal (up to 4 digits for the integer part and 1 digit for the decimal part) |
#COEF CoefA = & H0FFF CoefB = 123 CoefC =% 50 CoefD = 0.25 #ADRS AdrsA = & H8000 AdrsB = 123 AdrsC = ms300.0
★ SOUND Manual ★ SCSP / DSP Assembler User's Manual