Hyundai GMS800 Instruction Manual page 44

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

Advertisement

HYUNDAI MicroElectonics
INC
( Increment )

Function
: M
( M )
Description : Increment the contents of accumulator, register or memory by 1.

Flag
:
Mnemonic
INC A
INC dp
INC dp + X
INC !abs
INC X
INC Y
Example
:
383 C17C 8915
384 C17E C515
385 C180 4414
386 C182 7003
387 C184 E40015
388 C187 C515
INCW
Function
: ( dp+1 ) ( dp ) = ( dp+1 ) ( dp ) + 1
Description : Increment the contents of 16bit memory pair by 1.

Flag
:
Mnemonic
INCW dp
Example
:
504 C218 9D03
505 C21A C401
506 C21C 4504
507 C21E 70F3
508 C220 C4A0
509 C222 4503
510 C224 70E
511 C226 6F
40

1
OP Code
88
89
99
98
8F
9E
INC
LDA
CMP
BNE
LDM
ADCC1:
LDA
( Increment word - 16 bit )
OP Code
9D
INCW
LDA
CMP
BNE
LDA
CMP
BNE
RET
Bytes
Cycles
1
2
2
4
2
5
3
5
1
2
1
2
CHCNT
CHCNT
#20
ADCC1
CHCNT,#0
CHCNT
Bytes
Cycles
2
6
DPL
; INCREMENT (DPL+1)(DPL)
#01H
DPH
TXLP1
#0A0H
DPL
TXLP1
;clear until 1a0h address

Advertisement

Table of Contents
loading

Table of Contents