EasyManuals Logo

IDEC OpenNet series User Manual

IDEC OpenNet series
427 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #172 background imageLoading...
Page #172 background image
11: BINARY ARITHMETIC INSTRUCTIONS
OPENNET CONTROLLER USERS MANUAL 11-7
Repeat Operation in the DIV Instruction
Since the DIV (division) instruction uses two destination operands, the quotient and remainder are stored as described
below. Source operands S1 and S2 and destination operand D1 can be designated to repeat individually or in combination.
When destination operand D1 is not designated to repeat, the final result is set to destination operand D1 (quotient) and
D+1 (remainder). When repeat is designated, consecutive operands as many as the repeat cycles starting with the desig-
nated operand are used.
Repeat One Source Operand
• Data Type: Word
When only S1 (source) is designated to repeat, the final result is set to destination operands D1 and D1+1.
• Data Type: Double Word
When only S1 (source) is designated to repeat, the final result is set to destination operands D1·D1+1 and D1+2·D1+3.
Repeat Destination Operand Only
• Data Type: Word
When only D1 (destination) is designated to repeat, the same result is set to 6 operands starting with D1.
• Data Type: Double Word
When only D1 (destination) is designated to repeat, the same result is set to 6 operands starting with D1·D1+1.
Repeat Two Source Operands
• Data Type: Word
When S1 and S2 (source) are designated to repeat, the final result is set to destination operands D1 and D1+1.
• Data Type: Double Word
When S1 and S2 (source) are designated to repeat, the final result is set to destination operands D1·D1+1 and D1+2·D1+3
I1
REP
3
S1 R
D10
D1
D30
D10
S1 (Repeat = 3) D1 (Repeat = 0)
S2
D20
S2 (Repeat = 0)
÷ (D30)D20 (D31)
D11
D12
÷
÷
D20
D20
(D30)
D30
(D31)
D31
Quotient Remainder
SOTU
DIV(W)
I1
REP
3
S1 R
D10
D1
D30
D10·D11
S1 (Repeat = 3) D1 (Repeat = 0)
S2
D20
S2 (Repeat = 0)
÷ (D30·D31)D20·D21 (D32·D33)
D12·D13
D14·D15
÷
÷
D20·D21
D20·D21
(D30·D31)
D30·D31
(D32·D33)
D32·D33
Quotient Remainder
SOTU
DIV(D)
I1
REP
3
S1
D10
D1 R
D30
D10
S1 (Repeat = 0) D1 (Repeat = 3)
S2
D20
S2 (Repeat = 0)
÷ D30D20 D33
D10
D10
÷
÷
D20
D20
D31
D32
D34
D35
Quotient Remainder
SOTU
DIV(W)
I1
REP
3
S1
D10
D1 R
D30
D10·D11
S1 (Repeat = 0) D1 (Repeat = 3)
S2
D20
S2 (Repeat = 0)
÷ D30·D31D20·D21 D36·D37
D10·D11
D10·D11
÷
÷
D20·D21
D20·D21
D32·D33
D34·D35
D38·D39
D40·D41
Quotient Remainder
SOTU
DIV(D)
I1
REP
3
S1 R
D10
D1
D30
D10
S1 (Repeat = 3) D1 (Repeat = 0)
S2 R
D20
S2 (Repeat = 3)
÷ (D30)D20 (D31)
D11
D12
÷
÷
D21
D22
(D30)
D30
(D31)
D31
Quotient Remainder
SOTU
DIV(W)
I1
REP
3
S1 R
D10
D1
D30
D10·D11
S1 (Repeat = 3) D1 (Repeat = 0)
S2 R
D20
S2 (Repeat = 3)
÷ (D30·D31)D20·D21 (D32·D33)
D12·D13
D14·D15
÷
÷
D22·D23
D24·D25
(D30·D31)
D30·D31
(D32·D33)
D32·D33
Quotient Remainder
SOTU
DIV(D)
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC OpenNet series and is the answer not in the manual?

IDEC OpenNet series Specifications

General IconGeneral
BrandIDEC
ModelOpenNet series
CategoryController
LanguageEnglish

Related product manuals