Rev. 1.0, 03/01, page
18
of
280
Table 2-3 Arithmetic Operations Instructions (1)
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 byte 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 on byte 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 the 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.
DIVXU
B/W
Rd ÷ Rs
→
Rd
Performs unsigned division on data in two general registers: either 16
bits ÷ 8 bits
→
8-bit quotient and 8-bit remainder or 32 bits ÷ 16 bits
→
16-bit quotient and 16-bit remainder.
Note:
*
Refers to the operand size.
B: Byte
W: Word
L: Longword
Содержание H8/3670F-ZTAT HD64F3670
Страница 2: ...Rev 2 0 03 01 page ii of xxiv ...
Страница 4: ...Rev 2 0 03 01 page iv of xxiv ...
Страница 14: ...Rev 2 0 03 01 page xiv of xxiv ...
Страница 20: ...Rev 1 0 03 01 page xx of xxiv ...
Страница 24: ...Rev 1 0 03 01 page xxiv of xxiv ...
Страница 78: ...Rev 1 0 03 01 page 54 of 280 ...
Страница 112: ...Rev 1 0 03 01 page 88 of 280 ...
Страница 248: ...Rev 1 0 03 01 page 224 of 280 ...