Hyundai GMS800 Instruction Manual page 51

Gms800 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

OR
( Logical OR )

Function
: A
( A )
Description : Logical OR of the accumulator and the contents of memory address or Immediate data.
The result is left in the accumulator.

Flag
:
Mnemonic
OR #imm
OR dp
OR dp + X
OR !abs
OR !abs + Y
OR [ dp + X ]
OR [ dp ] + Y
OR { X }
Example :
458 C1A7 C4F0
459 C1A9 E40F08
460 C1AC 6508
461 C1AE E408C1
OR1
( Bit logical OR )

Function
: C
( C )
Description :
Logical OR of the carry flag and the specified bit of memory.
The result is left in the carry flag.

Flag
:
Mnemonic
OR1 M.bit
Example
:
161 F0BC CB6020
162 F0BF 6B7FE0
163 F0C2 EB7FF0
( M )
OP Code
64
65
66
67
75
76
77
74
LDA
#0F0H
LDM
TEMP,#0FH
OR
TEMP
LDM
R0DD,#TEMP
( M.bit )
OP Code
6B
LDC
60H.1
OR1
7FH.7
STC
7FH.7
Bytes
Cycles
2
2
2
3
2
4
3
4
3
5
2
6
2
6
1
3
Bytes
Cycles
3
5
; 7FH.7 ^ 60H.1 -> 7FH.7
Instruction Set
47

Advertisement

Table of Contents
loading

Table of Contents