![Samsung S3C9454B Скачать руководство пользователя страница 92](http://html1.mh-extra.com/html/samsung/s3c9454b/s3c9454b_user-manual_4006826092.webp)
S3C9454B/F9454B
SAM88RCRI INSTRUCTION SET
6-23
INC
— Increment
INC
dst
Operation:
dst
←
dst + 1
The contents of the destination operand are incremented by one.
Flags:
C:
Unaffected.
Z:
Set if the result is "0"; cleared otherwise.
S:
Set if the result is negative; cleared otherwise.
V:
Set if arithmetic overflow occurred, that is dst value is + 127 (7FH) and result is – 128 (80H);
cleared otherwise.
Format:
Bytes
Cycles
Opcode
(Hex)
Addr Mode
dst
dst | opc
1
4
rE
r
r = 0 to F
opc
dst
2
4
20
R
4
21
IR
Examples:
Given: R0 = 1BH, register 00H = 0CH, and register 1BH = 0FH:
INC
R0
→
R0 = 1CH
INC
00H
→
Register 00H = 0DH
INC
@R0
→
R0 = 1BH, register 01H = 10H
In the first example, if destination working register R0 contains the value 1BH, the statement "INC
R0" leaves the value 1CH in that same register.
The next example shows the effect an INC instruction has on register 00H, assuming that it
contains the value 0CH.
In the third example, INC is used in Indirect Register (IR) addressing mode to increment the value
of register 1BH from 0FH to 10H.
Содержание S3C9454B
Страница 1: ...S3C9454B F9454B 8 BIT CMOS MICROCONTROLLER USER S MANUAL Revision 1 ...
Страница 25: ...PRODUCT OVERVIEW S3C9454B F9454B 1 10 NOTES ...
Страница 35: ...ADDRESS SPACES S3C9454B F9454B 2 10 NOTES ...
Страница 65: ...CONTROL REGISTERS S3C9454B F9454B 4 18 NOTES ...
Страница 123: ...CLOCK CIRCUIT S3C9454B F9454B 7 4 NOTES ...
Страница 133: ...RESET and POWER DOWN S39454B F9454B 8 10 NOTES ...
Страница 145: ...I O PORTS S3C9454B F9454B 9 12 NOTES ...
Страница 173: ...A D CONVERTER S3C9454B F9454B 12 8 NOTES ...
Страница 183: ...ELECTRICAL DATA S3C9454B F9454B 13 10 NOTES ...
Страница 193: ...S3F9454B MTP S3C9454B F9454B 15 4 NOTES ...