43
Table 2.4
Arithmetic Operation Instructions
Instruction Size
*
Function
ADD,SUB
B/W/L
Rd ± Rs
→
Rd, Rd ± #IMM
→
Rd
Performs addition or subtraction on data in two general registers, or on
immediate data and data in a general register. (Immediate byte data cannot
be subtracted from data in a general register. Use the SUBX or ADD
instruction.)
ADDX,
SUBX
B
Rd ± Rs ± C
→
Rd, Rd ± #IMM ± C
→
Rd
Performs addition or subtraction with carry or borrow on data in two general
registers, or on immediate data and data in a general register.
INC,
DEC
B/W/L
Rd ± 1
→
Rd, Rd ± 2
→
Rd
Increments or decrements a general register by 1 or 2. (Byte operands can
be incremented or decremented by 1 only.)
ADDS,
SUBS
L
Rd ± 1
→
Rd, Rd ± 2
→
Rd, Rd ± 4
→
Rd
Adds or subtracts the value 1, 2, or 4 to or from data in a 32-bit register.
DAA,
DAS
B
Rd decimal adjust
→
Rd
Decimal-adjusts an addition or subtraction result in a general register by
referring to CCR to produce 4-bit BCD data.
MULXU
B/W
Rd
×
Rs
→
Rd
Performs unsigned multiplication on data in two general registers:
either 8 bits
×
8 bits
→
16 bits or 16 bits
×
16 bits
→
32 bits.
MULXS
B/W
Rd
×
Rs
→
Rd
Performs signed multiplication on data in two general registers:
either 8 bits
×
8 bits
→
16 bits or 16 bits
×
16 bits
→
32 bits.
Содержание H8/3060
Страница 10: ......
Страница 16: ......
Страница 114: ...66 ...
Страница 132: ...84 ...
Страница 144: ...96 ...
Страница 170: ...122 ...
Страница 212: ...164 ...
Страница 268: ...220 ...
Страница 332: ...284 ...
Страница 396: ...348 ...
Страница 494: ...446 ...
Страница 698: ...650 ...
Страница 729: ...681 H8 3062F ZTAT or H8 3062F ZTAT R mask version Ports 1 2 5 LED 600 Ω Figure 22 5 Sample LED Circuit ...
Страница 748: ...700 H8 3064F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 8 Sample LED Circuit ...
Страница 777: ...729 H8 3062F ZTAT B mask version Ports 1 2 5 LED 600 Ω Figure 22 14 Sample LED Circuit ...
Страница 810: ...762 ...
Страница 994: ...946 ...