Download USER'S MANUAL

Transcript
Chapter 2
2.4.5.3 MAC/MAS Saturation Mode – 32BIT
SME
Overflow (V)
Carry (C)
MAC Output
0
X
X
MAC Output
1
0
0
MAC Output
1
0
1
MAC Output
1
1
0
0X7FFFFFFF
1
1
1
0X80000000
2.5 Instruction Set
There are two things which you must take note with the instruction set
definitions.
First, the to-be completed instruction set must have no missing functionality.
Second, the instructions should be orthogonal, that is, they must not be
redundant unnecessarily.
ELAN eSL Series has a 16-bit instruction set (1 or 2 words). It is organized into
instruction categories grouped by function as shown in the table below. There
are only 60 instructions which make software development quite convenient.
Function Groups
Instructions
Logic and Mathematic
Instructions
AND, OR, XOR, COM, NEG, CMP, CLR, ADD, ADC, SUB,
SUBB, INC, DEC
Branch Instructions
JCC, JCS, JLS, JGE, (S)JMP, (L)JMP
Shift Instructions
SHL, SHR, ROL, ROR, ASR
Data Transfer
Instructions
MOV [R = R; R.l = #8; R.h = #8; R = RAM[In,m];
R = ROM[In,m]; RAM[In,m] = R; R = RAMname; RAMname = R
IN [R=IO <Add>]; OUT [IO <Add>=R]
PUSH R;IO; POP R; IO; SWAP [R.h = R (Low Byte),
R.l = R (High Byte)]
Bit Operation Instructions
BS, BC, BTEST, BTG IO; Register; RAM
Control Instructions
(S)CALL, (L)CALL, NOP, RET, RETI, RPT, LOOP, TRAP
DSP Instructions
MUL.UU, MUL.US, MUL.SU, MUL.SS, MAC, MAS, DIV, DIVS
eSL/eSLS Series (+ eSLZ000) User’s Manual
Architecture • 29