Hyundai GMS800 Instruction Manual page 24

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

Advertisement

HYUNDAI MicroElectonics
AND
( Logical AND )

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

Flag
:
Mnemonic
AND #imm
AND dp
AND dp + X
AND !abs
AND !abs + Y
AND [ dp + X ]
AND [ dp ] + Y
AND { X }
Example
:
85 F6D1 C531
86 F6D3 84FB
87 F6D5 E531
AND1
( Bit logical AND )

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

Flag
:
Mnemonic
AND1 M.bit
* The bit4 of 3rd byte is set to "0".
Example
:
64
65
66
67 F046 FF
68 F047 FF
69 F048 8B2320
20

( M ) or A
( A )
OP Code
84
85
86
87
95
96
97
94
LDA
OMODE
AND
#11111011B
STA
OMODE
( M.bit )
OP Code
8B
KEYONF
EQU
;
;
NOP
NOP
AND1
#imm
Bytes
Cycles
2
2
2
3
2
4
3
4
3
5
2
6
2
6
1
3
;
;
;
Bytes
Cycles
3
4
1,23H
KEYONF ; C ^ 23H.1 -> C

Advertisement

Table of Contents
loading

Table of Contents