![Samsung S3C80M4/F80M4 Скачать руководство пользователя страница 131](http://html1.mh-extra.com/html/samsung/s3c80m4-f80m4/s3c80m4-f80m4_user-manual_3996174131.webp)
S3C80M4/F80M4
INSTRUCTION SET
6-29
COM
—
Complement
COM
dst
Operation:
dst
←
NOT dst
The contents of the destination location are complemented (one's complement); all "1s" are
changed to "0s", and vice-versa.
Flags: C:
Unaffected.
Z:
Set if the result is "0"; cleared otherwise.
S:
Set if the result bit 7 is set; cleared otherwise.
V:
Always reset to "0".
D:
Unaffected.
H:
Unaffected.
Format:
Bytes Cycles Opcode
(Hex)
Addr Mode
dst
opc dst
2 4 60
R
4 61
IR
Examples:
Given: R1 = 07H and register 07H = 0F1H:
COM R1
→
R1 = 0F8H
COM @R1
→
R1 = 07H, register 07H = 0EH
In the first example, destination working register R1 contains the value 07H (00000111B). The
statement "COM R1" complements all the bits in R1: all logic ones are changed to logic zeros,
and vice-versa, leaving the value 0F8H (11111000B).
In the second example, Indirect Register (IR) addressing mode is used to complement the value
of destination register 07H (11110001B), leaving the new value 0EH (00001110B).
Содержание S3C80M4/F80M4
Страница 1: ...S3C80M4 F80M4 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 ...
Страница 44: ...ADDRESS SPACES S3C80M4 F80M4 2 20 NOTES ...
Страница 84: ...CONTROL REGISTERS S3C80M4 F80M4 4 26 NOTES ...
Страница 102: ...INTERRUPT STRUCTURE S3C80M4 F80M4 5 18 NOTES ...
Страница 190: ...INSTRUCTION SET S3C80M4 F80M4 6 88 NOTES ...
Страница 202: ...RESET and POWER DOWN S3C80M4 F80M4 8 6 NOTES ...
Страница 216: ...8 BIT TIMER 0 S3C80M4 F80M4 11 4 NOTES ...
Страница 220: ...8 BIT PULSE WIDTH MODULATION S3C80M4 F80M4 12 4 NOTES ...
Страница 230: ...ELECTRICAL DATA S3C80M4 F80M4 13 10 NOTES ...
Страница 248: ...DEVELOPMENT TOOLS S3C80M4 F80M4 16 8 NOTES ...
Страница 249: ...This datasheet has been downloaded from www DatasheetCatalog com Datasheets for electronic components ...