SOUND ManualSCSP / DSP Assembler User's Manual
BackForward
SCSP / DSP Assembler User's Manual

4. Program description


■ Command list

 Command
 function
 @
 Start of multiplication / addition description
 *
 Multiply
 Addition
 Subtraction
 Store (end of multiplication / addition description)
 (
 Left parenthesis
 )
 Right parenthesis
 LDI
 Memory access and loading into MEMS
 LDY
 Loading from INPUTS to Y register
 LDA
 Loading from INPUTS to A register

■ Parameters

● Internal register

 Symbol
 Explanation
 REG
 Represents the last multiplication / addition result
 YREGH
 Represents a part of YREG (see Multiply-accumulation grammar explanation)
 YREGL
 Represents a part of YREG (see Multiply-accumulation grammar explanation)
 FREG
 (Refer to the grammar explanation of the store)
 ADREG
 Address modulation (see store grammar explanation)

● Internal RAM

 Symbol
 Explanation
 MEMS00 ~ 1F
 Put the data read from the external memory here
 MIXS00 ~ 0F
 Data from the sound source section appears here
 TEMP00-7F
 Multiply-accumulation results can be temporarily placed here
 EFREG00 ~ 0F
 Put the processed data here
 EXTS00-01
 Data from external extended inputs appear here

● Parameters for memory access

 Symbol
 Explanation
 MR […]
 Read from memory
 MW […]
 Write to memory

※note
In [...], describe the following memory access description elements according to the rules specified separately.

■ Program grammar

All mnemonics and parameters must be separated by one or more of the defined delimiters: "whitespace", "comma (,)", "tab", or "newline".

● Reading external memory and specifying the destination MEMS (LDI)

LDI MEMSxx, MR [AddressElement (s) / NF]

● Load to YREG (LDY)

LDY INPUTS

● Load to ADREG (LDA)

LDA INPUTS

● Multiply-accumulation

@ pM * pC ± (pM * pC ± (... (pM * pC ± (pM * pC + pA)) ...))

pM: Multiplied number
pC: Multiplication coefficient
pA: Number of additions

● Store

> opt Destination (s)

 opt
: Store options.
Any one of {S1 / S2 / S3}, or omitted.
 Destination (s)
: Specify the store destination.
Select one or more in total from "Group a to Group d" shown below. Cannot be omitted.

 Group a
 One of {TEMP00-7F}
 Group b
 FREG
 Group c
 ADREG
 Group d
 One of {EFREG00 ~ 0F}

caution
When specifying ADREG for Destination (s),
You must specify S3 for opt.


BackForward
SOUND ManualSCSP / DSP Assembler User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997