Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 578

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Programming Instructions
Code
Mnemonic
54
(@)ADDL
DOUBLE BCD ADD
55
(@)SUBL
DOUBLE BCD
SUBTRACT
56
(@)MULL
DOUBLE BCD
MULTIPLY
57
(@)DIVL
DOUBLE BCD DIVIDE
58
(@)BINL
DOUBLE BCD TO
DOUBLE BINARY
59
(@)BCDL
DOUBLE BINARY TO
DOUBLE BCD
60 to 69
For expansion instructions.
70
(@)XFER
BLOCK TRANSFER
71
(@)BSET
BLOCK SET
73
(@)XCHG
DATA EXCHANGE
74
(@)SLD
ONE DIGIT SHIFT
LEFT
75
(@)SRD
ONE DIGIT SHIFT
RIGHT
76
(@)MLPX
4-TO-16 DECODER
77
(@)DMPX
16-TO-4 ENCODER
78
(@)SDEC
7-SEGMENT
DECODER
80
(@)DIST
SINGLE WORD
DISTRIBUTE
81
(@)COLL
DATA COLLECT
82
(@)MOVB
MOVE BIT
83
(@)MOVD
MOVE DIGIT
84
(@)SFTR
REVERSIBLE SHIFT
REGISTER
85
(@)TCMP
TABLE COMPARE
86
(@)ASC
ASCII CONVERT
87 to 89
For expansion instructions.
91
(@)SBS
SUBROUTINE ENTRY
92
SBN
SUBROUTINE
DEFINE
93
RET
RETURN
97
(@)IORF
I/O REFRESH
99
(@)MCRO
MACRO
Name
Adds two eight-digit values (2 words each) and content of CY,
and outputs result to specified result words.
Subtracts an eight-digit BCD value and CY from another
eight-digit BCD value and outputs result to the result words.
Multiplies two eight-digit BCD values and outputs result to
specified result words.
Divides eight-digit BCD dividend by eight-digit BCD divisor
and outputs result to specified result words.
Converts BCD value in two consecutive source words into
binary and outputs converted data to two consecutive result
words. (CPM2A only)
Converts binary value in two consecutive source words into
BCD and outputs converted data to two consecutive result
words. (CPM2A only)
Moves content of several consecutive source words to con-
secutive destination words.
Copies content of one word or constant to several consecu-
tive words.
Exchanges contents of two different words.
Left shifts data between starting and ending words by one
digit (four bits).
Right shifts data between starting and ending words by one
digit (four bits).
Converts up to four hexadecimal digits in source word into
decimal values from 0 to 15 and turns ON, in result word(s),
bit(s) whose position corresponds to converted value.
Determines position of highest ON bit in source word(s) and
turns ON corresponding bit(s) in result word.
Converts hexadecimal values from source word to data for
seven-segment display.
Moves one word of source data to destination word whose
address is given by destination base word plus offset.
Extracts data from source word and writes it to destination
word.
Transfers designated bit of source word or constant to desig-
nated bit of destination word.
Moves hexadecimal content of specified four-bit source dig-
it(s) to specified destination digit(s) for up to four digits.
Shifts data in specified word or series of words to either left
or right.
Compares four-digit hexadecimal value with values in table
consisting of 16 words.
Converts hexadecimal values from the source word to eight-
bit ASCII code starting at leftmost or rightmost half of starting
destination word.
Calls and executes subroutine N.
Marks start of subroutine N.
Marks the end of a subroutine and returns control to main
program.
Refreshes all I/O words between the start and end words.
Cannot be used with the SRM1(-V2).
Calls and executes a subroutine replacing I/O words.
Function
Appendix A
Page
463
464
466
466
440
441
160
413
414
415
408
408
442
444
446
415
417
419
420
409
433
449
160
484
486
486
498
486
561

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents