|
GMS82524 Datasheet, PDF (90/93 Pages) Hynix Semiconductor – 8-BIT SINGLE-CHIP MICROCONTROLLERS | |||
|
◁ |
GMS82512/16/24
HYUNDAI MicroElectronics
16-Bit Operation
NO. MNENONIC
1 ADDW dp
2 CMPW dp
3 DECW dp
4 INCW dp
5 LDYA dp
6 STYA dp
7 SUBW dp
OP
CODE
1D
5D
BD
9D
7D
DD
3D
BYTE
NO.
2
2
CYCLE
NO
5
4
2
6
2
6
2
5
2
5
2
5
OPERATION
FLAG
NVGBHIZC
16-bits add without carry : YA YA + (dp+1)(dp)
Compare YA contents with memory pair contents :
YA - (dp+1)(dp)
NV - - H - ZC
N - - - - - ZC
Decrement memory pair : (dp+1)(dp) {(dp+1)(dp)} - 1 N - - - - - Z -
Increment memory pair : (dp+1)(dp) {(dp+1)(dp)} + 1 N - - - - - Z -
Load YA : YA (dp+1)(dp)
Store YA : (dp+1)(dp) YA
N-----Z-
--------
16-bits substract without carry : YA YA - (dp+1)(dp) NV - - H - ZC
Bit Manipulation
NO.
MNENONIC
OP BYTE CYCLE
CODE NO. NO
OPERATION
FLAG
NVGBHIZC
1 AND1 M.bit
8B
3
2 AND1B M.bit 8B
3
3 BIT dp
0C
2
4 BIT !abs
1C
3
5 CLR1 dp.bit
y1
2
4
Bit AND C-flag : C C (M.bit)
4
Bit AND C-flag and NOT : C C (M.bit)
4
Bit test A with memory :
5
Z A M, N (M7), V (M6)
4
Clear bit : (M.bit) â0â
-------C
-------C
MM - - - - Z -
--------
6 CLR1A A.bit
2B
2
7 CLRC
20
1
2
Clear A.bit : (A.bit) â0â
2
Clear C-flag : C â0â
--------
-------0
8 CLRG
40
1
2
Clear G-flag : G â0â
--0-----
9 CLRV
80
1
10 EOR1 M.bit
AB
3
11 EOR1B M.bit AB
3
12 LDC M.bit
CB
3
13 LDCB M.bit
CB
3
14 NOT1 M.bit
4B
3
2
Clear V-flag : V â0â
-0--0---
5
Bit exclusive-OR C-flag : C C â (M.bit)
-------C
5
Bit exclusive-OR C-flag and NOT : C C â (M.bit) - - - - - - - C
4
Load C-flag : C (M.bit)
-------C
4
Load C-flag with NOT : C (M.bit)
-------C
5
Bit complement : (M.bit) (M.bit)
--------
15 OR1 M.bit
6B
3
16 OR1B M.bit
6B
3
17 SET1 dp.bit
x1
2
5
Bit OR C-flag : C C V (M.bit)
5
Bit OR C-flag and NOT : C C V (M.bit)
4
Set bit : (M.bit) â1â
-------C
-------C
--------
18 SETA1 A.bit
0B
2
19 SETC
A0
1
2
Set A.bit : (A.bit) â1â
2
Set C-flag : C â1â
--------
-------1
20 SETG
C0
1
2
Set G-flag : G â1â
--1-----
21 STC M.bit
EB
3
22 TCLR1 !abs
5C
3
23 TSET1 !abs
3C
3
6
Store C-flag : (M.bit) C
--------
6
Test and clear bits with A :A - (M), (M) (M) (A) N - - - - - Z -
6
Test and set bits with A :A - (M), (M) (M) V (A)
N-----Z-
xvii
FEB. 2000 Ver 1.00
|
▷ |