
2.4 Instruction Details
3-186
2
Chapter 2 Instructions
Change in status of special utility relays (arithmetic flags) by arithmetic
instructions (1/3)
Instruction Mnemonic Operand A < 0 A = 0 A > 0 Error
2009 2010 2011 2012
DATA
MEMORY DW $,# constant — — — —
WRITE
➮
3-136
Relay No. — 5 ——
LOAD A LDA Timer/counter No. — 5 ——
➮
3-140
[FUN23] Data memory No. — 5 ——
$,# constant — 5 ——
# TM — 5 — H
Relay No. — — — —
STORE A STA Timer/counter No. — — — —
➮
3-140
[FUN42] Data memory No. — — — —
# TM — — — H
COMPARE
CMP
Data memory No. 123 —
➮
3-146
[FUN04]
$,# constant 123 —
# TM 123 H
ADD
ADD
Data memory No. 45——
➮
3-150
[FUN00]
$,# constant 45——
# TM 45— H
SUBTRACT
SUB
Data memory No. 657 —
➮
3-150
[FUN46]
$,# constant 657 —
# TM 657 H
MULTIPLY
MUL
Data memory No. I8——
➮
3-150
[FUN28]
$,# constant I8——
# TM I8— H
DIVIDE
DIV
Data memory No. — 8 — 9
➮
3-150
[FUN11]
$,# constant — 8 — 9
# TM — 8 — H9
AND A
ANDA
Data memory No. — 5 ——
➮
3-159
[FUN01]
$,# constant — 5 ——
# TM — 5 — H
—: No change in arithmetic flag
Refer to the description of each instruction for details of the operating conditions of the flag.
KVNKA Chap 02_4dP.p65 08.3.11, 0:04 PM186
Comentarios a estos manuales