![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205046.webp)
HYUNDAI MicroElectonics
42
LDC
( Load carry )
Function
: C
( M.bit )
Description : The carry flag is loaded with specified bit of memory.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
LDC M.bit
CB
3
4
* The bit4 of 3rd byte is set to "0".
Example
:
475 F8BD CBC040
LDC
0C0H.2
; R02 -> CARRY
476 F8C0 AB2E20
EOR1
2EH.1
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
OP Code
Bytes
Cycles
LDCB M.bit
CB
3
4
* The bit4 of 3rd byte is set to "0".
Example
:
379 C151 20
CLRC
380 C152 E4CC36
REPEAT2:
LDM
36H,#0CCH
381 C155 8936
INC
36H
382 C157 CB3630
LDCB
36H.1
383 C15A 50F6
BCC
REPEAT2
384 C15C 1BF5C0
JMP
BYE