Hyundai GMS800 Instruction Manual page 46

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

Advertisement

HYUNDAI MicroElectonics
LDC
( Load carry )

Function
: C
( M.bit )
Description : The carry flag is loaded with specified bit of memory.

Flag
:
Mnemonic
LDC M.bit
* The bit4 of 3rd byte is set to "0".
Example
:
475 F8BD CBC040
476 F8C0 AB2E20
LDCB
( Load carry - 1's complement )

Function
: C
~( M.bit )
Description : The carry flag is loaded with 1's complement of the specified bit of memory.

Flag
:
Mnemonic
LDCB M.bit
* The bit4 of 3rd byte is set to "0".
Example
:
379 C151 20
380 C152 E4CC36
381 C155 8936
382 C157 CB3630
383 C15A 50F6
384 C15C 1BF5C0
42
OP Code
CB
LDC
EOR1
OP Code
CB
CLRC
REPEAT2:
LDM
INC
LDCB
BCC
JMP
Bytes
Cycles
3
4
0C0H.2
; R02 -> CARRY
2EH.1
Bytes
Cycles
3
4
36H,#0CCH
36H
36H.1
REPEAT2
BYE

Advertisement

Table of Contents
loading

Table of Contents