![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205051.webp)
Instruction Set
47
OR
( Logical OR )
Function
: A
( A )
( M )
Description : Logical OR of the accumulator and the contents of memory address or Immediate data.
The result is left in the accumulator.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
OR #imm
64
2
2
OR dp
65
2
3
OR dp + X
66
2
4
OR !abs
67
3
4
OR !abs + Y
75
3
5
OR [ dp + X ]
76
2
6
OR [ dp ] + Y
77
2
6
OR { X }
74
1
3
Example :
458 C1A7 C4F0
LDA
#0F0H
459 C1A9 E40F08
LDM
TEMP,#0FH
460 C1AC 6508
OR
TEMP
461 C1AE E408C1
LDM
R0DD,#TEMP
OR1
( Bit logical OR )
Function
: C
( C )
( M.bit )
Description : Logical OR of the carry flag and the specified bit of memory.
The result is left in the carry flag.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
OR1 M.bit
6B
3
5
Example
:
161 F0BC CB6020
LDC
60H.1
162 F0BF 6B7FE0
OR1
7FH.7
163 F0C2 EB7FF0
STC
7FH.7
; 7FH.7 ^ 60H.1 -> 7FH.7