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

4. Program description


■Command list

 command
 function
 @
 Start of multiply-add description
 *
 multiplication
 +
 addition
 subtraction
 Store (end of multiplication/addition description)
 (
 left parenthesis
 )
 right parenthesis
 LDI
 Memory access and loading into MEMS
 L.D.Y.
 Load from INPUTS to Y register
 LDA
 Load from INPUTS to A register

■Parameters

●Internal register

 symbol
 Explanation
 REG
 represents the previous multiplication/addition result
 YREGH
 Represents a part of YREG (see syntax explanation of multiplication and addition)
 YREGL
 Represents a part of YREG (see syntax explanation of multiplication and addition)
 FREG
 (See store grammar explanation)
 ADREG
 Address modulation (see store syntax explanation)

●Internal RAM

 symbol
 Explanation
 MEMS00~1F
 Place data read from external memory here
 MIXS00~0F
 Data from the sound source section appears here
 TEMP00~7F
 You can temporarily store the multiplication and addition results here.
 EFREG00~0F
 Put the processed data here
 EXTS00~01
 Data from external extension input appears here

●Memory access parameters

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

※note
Describe the memory access description elements shown below in [...] according to the rules specified separately.

■Program grammar

All mnemonics and parameters must be separated by one or more of the following defined delimiters: ``space'', ``comma (,)'', ``tab'', or ``newline''.

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

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

●Load to YREG (LDY)

LDY INPUTS

●Load to ADREG (LDA)

LDA INPUTS

●Multiplication and addition

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

pM: Multiplicand
pC: Multiplication coefficient
pA: aryl addition number

●Store

> optDestination(s)

 opt
:Store option.
One of {S1 / S2 / S3} or omitted.
 Destination(s)
: Specify the storage destination.
Select one or more items from "Groups A to D" shown below. Cannot be omitted.

 group a
 Any one of {TEMP00~7F}
 group b
 FREG
 group c
 ADREG
 group d
 Any one of {EFREG00~0F}

Note
When specifying ADREG for Destination(s),
S3 must be specified for opt.


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