Hyundai GMS800 Instruction Manual page 17

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

Advertisement

1.8. Bit Manipulation Mode
Operation is performed by 1bit instruction manipulation.

Accumulator Bit Operation
Bit position of accumulator is determined by the upper 3 bits of operand.
OP CODE
Operand
A
Example)
0B C0

Direct Page Memory Bit Operation
Bit position of memory in direct page is determined by the upper 3 bits of op code.
OP CODE
Operand
Memory
Example)
C1 35

A.bit
operand
CLRA1
SETA1
( A=00
)
h
SETA1 A.6

dp.bit
operand
CLR1
SET1
( G=0, (035h)=00
)
h
SET1 35H.6
Instructions
Operand
1
1
0
0
0
h
Accumulator
0
1
0
0
0
0
0

A
=?
A
=1
6
6
Instructions
0035
-
1
-
-
-
-
-
h

M
=?
M
6
Op code
1
1
0
0
1
h
Addressing Mode
MEMORY
Op code ( 0B )
Operand ( C0 )
NEXT
0
MEMORY
Data
035
-
=1
6
Op code ( C1 )
Operand ( 35 )
NEXT


+1

+2
h
13

Advertisement

Table of Contents
loading

Table of Contents