Omron CJ2 CPU UNIT SOFTWARE User Manual page 164

Cj2 cpu unit software
Hide thumbs Also See for CJ2 CPU UNIT SOFTWARE:
Table of Contents

Advertisement

5 Understanding Programming
Operand
Specifying indirect
The offset from the beginning of the
DM/EM addresses in
area is specified. The contents of the
*2
address will be treated as binary data
Binary Mode
(00000 to 32767) to specify the word
address in DM Area or EM Area. Add
the @ symbol at the front to specify an
indirect address in Binary Mode.
Contents
D0 to D32767 are specified if
@D@@@@@ contains 0000 to 7FFF
hex (0 to 32767 decimal).
E0 _0 to E0 _32767 of bank 0 in the EM
Area are specified if @D@@@@@ con-
tains 8000 to FFFF hex (32768 to
65535 decimal).
E@_0 to E@_32767 in the specified
bank are specified if @E@_@@@@@
contains 0000 to 7FFF hex (0 to 32767
decimal).
E(@+1)_0 to E(@+1)_32767 in the bank
following the specified bank @ are
specified if @E@_@@@@@ contains
8000 to FFFF hex (32768 to 65535 dec-
imal).
*2 When specifying an indirect address in Binary Mode, treat the DM Area and the EM Area
5-72
Description
@D@@@@@
00000 to 32767
(0000 Hex to
7FFF Hex in BIN)
D
(banks 0 to 18 hex) as one series of addresses. If the contents of an address with the @ sym-
bol exceeds 32767, the address will be assumed to be an address in the EM Area continuing
on from 0 in bank 0.
Example: If the DM Area word contains 32768, E0_0 in bank 0 in the EM Area would be
specified.
If the EM Area bank number is specified as "n" and the contents of the word exceeds 32767,
the address will be assumed to be an address in the EM Area continuing on from 0 in bank
n+1.
Example: If bank 2 in the EM Area contains 32768, E3_0 in bank 3 in the EM Area would be
specified.
Notation
@D300
& 2 5 6
Contents
Hex: #0100
Specifies D256.
Add the @ symbol.
@D300
&32769
Contents
Hex: #8001
Specifies E0_01.
@E1_200
&257
Contents
Hex: #0101
Specifies E1_257.
@E1_200
&32770
Contents
Hex: #8002
Specifies E2_2.
CJ2 CPU Unit Software User's Manual
Application examples
MOV #0001 @D300
MOV #0001@E1_200

Advertisement

Table of Contents
loading

Table of Contents