Motorola dsp assembler Reference Manual



Yüklə 4,8 Kb.
Pdf görüntüsü
səhifə81/91
tarix08.10.2017
ölçüsü4,8 Kb.
#3546
1   ...   77   78   79   80   81   82   83   84   ...   91

Motorola DSP Object File Format (COFF)
Object File Data Expression Format
MOTOROLA_DSP_ASSEMBLER_REFERENCE_MANUAL_F-1_Appendix_F_DEVICE_-_DEPENDENT_INFORMATION_F.1'>MOTOROLA_DSP_ASSEMBLER_REFERENCE_MANUAL_E-35_E.5.2.7_BFxxx_Instruction_Mask_Function_-_@FBF()_The_@FBF()'>MOTOROLA
DSP ASSEMBLER REFERENCE MANUAL
E-35
E.5.2.7  BFxxx Instruction Mask Function - @FBF()
The @FBF() function is generated by the Assembler when the mask operand for a bitfield
instruction is external. The Assembler passes a relocation expression to the function as
an argument. The Linker evaluates the expression in parentheses and adjusts the asso-
ciated instruction accordingly.
E.5.2.8  Local Relocatable Reference Function - @LRF()
The @LRF() function attempts to encapsulate more detail about a relocatable expression
than is generated with other operators such as @ and :. Its main purpose is to provide
sufficient information for evaluating local relocatable expressions that are referenced out-
side a defining context. For example, the Assembler might produce an @LRF() function
for a reference to an underscore label that is outside its defining section. The function ar-
guments consist of the original relocatable expression, the memory space/mapping value,
the location counter designation, the defining and relocation section numbers, and any
buffer or overlay sequence numbers associated with the expression.
E.5.2.9  Alternate Encoding Function - @ENC()
The @ENC() provides two encoding expressions for the same instruction. This is useful
in cases where the unknown value of an external operand can affect which expression is
used for the final encoding. The function takes four arguments. The first argument to the
function is the external operand expression. The second argument is the absolute value
beyond which the second encoding expression is used over the first. The third argument
is the first encoding expression and the last argument is the second encoding expression.



MOTOROLA
DSP ASSEMBLER REFERENCE MANUAL
F-1
Appendix F
DEVICE
-
DEPENDENT INFORMATION
F.1
  INTRODUCTION
The Motorola DSP Assemblers are quite similar in terms of functional capabilities. Virtu-
ally every Assembler feature is available across all Motorola DSP processor families. The
devices for which the Assemblers generate code, however, differ architecturally. For ex-
ample, the DSP56000 is a binary fractional machine with a suitably-oriented register and
instruction set. The DSP96000 is a floating point processor with floating point instructions
and an alternatively-named register set. The following sections describe characteristics
that vary among Motorola DSPs and how these differences relate to Assembler use and
operation.


Device-dependent Information
DSP56000 Information
F-2
DSP ASSEMBLER REFERENCE MANUAL
MOTOROLA
F.2
  DSP56000 INFORMATION
The Motorola DSP56000 refers to a family of high-speed, low power programmable
CMOS processors. The DSP56000 supports 24-bit signed fixed-point fractional arith-
metic.
F.2.1   Instruction Set Summary
DSP56000 instructions can be grouped by function into six types:
1.  Arithmetic instructions
2.  Logical instructions
3.  Bit manipulation instructions
4.  Loop instructions
5.  Move instructions
6.  Program control instructions


Device-dependent Information
DSP56000 Information
MOTOROLA
DSP ASSEMBLER REFERENCE MANUAL
F-3
F.2.1.1
  Arithmetic Instructions
The DSP56000 instructions used for arithmetic operations are:
ABS
— Absolute value*
ADC
— Add long with carry*
ADD
— Add*
ADDL
— Shift left then add*
ADDR
— Shift right then add*
ASL
— Arithmetic shift accumulator left*
ASR
— Arithmetic shift accumulator right*
CLR
— Clear accumulator*
CMP
— Compare*
CMPM
— Compare magnitude*
DEC
— Decrement accumulator
DIV
Divide iteration
INC
— Increment accumulator
MAC
— Signed multiply-accumulate*
MACR
— Signed multiply-accumulate and round*
MPY
— Signed multiply*
MPYR
— Signed multiply and round*
NEG
— Negate accumulator*
NORM
— Normalize accumulator iteration
RND
— Round accumulator*
SBC
— Subtract long with carry*
SUB
— Subtract*
SUBL
— Shift left then subtract*
SUBR
— Shift right then subtract*
Tcc
— Transfer conditionally
TFR
— Transfer data ALU register*
TST
— Test*
*Instruction allows parallel data move.


Device-dependent Information
DSP56000 Information
F-4
DSP ASSEMBLER REFERENCE MANUAL
MOTOROLA
F.2.1.2
  Logical Instructions
The DSP56000 instructions used for logical operations are:
AND
— Logical AND*
ANDI
— AND Immediate with control register
EOR
— Logical exclusive OR*
LSL
— Logical shift accumulator left*
LSR
— Logical shift accumulator right*
NOT
— Logical complement on accumulator*
OR
— Logical inclusive OR*
ORI
— OR immediate with control register
ROL
— Rotate accumulator left*
ROR
— Rotate accumulator right*
F.2.1.3
  Bit Manipulation Instructions
The DSP56000 instructions used for bit manipulation are:
BCHG
— Bit test and change
BCLR
— Bit test and clear
BSET
— Bit test and set
BTST
— Bit test on memory
F.2.1.4
  Loop Instructions
The DSP56000 instructions used for loop operations are:
DO
— Start hardware loop
ENDDO
Exit from hardware loop
F.2.1.5
  Move Instructions
The DSP56000 instructions used for move operations are:
LUA
— Load updated address
MOVE
— Move data*
MOVEC
— Move control register
MOVEM
— Move program memory
MOVEP
— Move peripheral data
*Instruction allows parallel data move.
*Instruction allows parallel data move.


Yüklə 4,8 Kb.

Dostları ilə paylaş:
1   ...   77   78   79   80   81   82   83   84   ...   91




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə