Rev. 1.0, 09/01, page 37 of 904
Table 2.4
Arithmetic Operations Instructions (2)
Instruction
Size
*
1
Function
DIVXS
B/W
Rd
÷
Rs
→
Rd
Performs signed 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.
CMP
B/W/L
Rd – Rs, Rd – #IMM
Compares data in a general register with data in another general register
or with immediate data, and sets the CCR bits according to the result.
NEG
B/W/L
0 – Rd
→
Rd
Takes the two's complement (arithmetic complement) of data in a
general register.
EXTU
W/L
Rd (zero extension)
→
Rd
Extends the lower 8 bits of a 16-bit register to word size, or the lower 16
bits of a 32-bit register to longword size, by padding with zeros on the
left.
EXTS
W/L
Rd (sign extension)
→
Rd
Extends the lower 8 bits of a 16-bit register to word size, or the lower 16
bits of a 32-bit register to longword size, by extending the sign bit.
TAS
*
2
B
@ERd – 0, 1
→
(<bit 7> of @ERd)
Tests memory contents, and sets the most significant bit (bit 7) to 1.
Notes: 1. Size refers to the operand size.
B:
Byte
W: Word
L:
Longword
2. Only register ER0, ER1, ER4, or ER5 should be used when using the TAS instruction.
Summary of Contents for H8S/2376 F-ZTAT
Page 24: ...Rev 1 0 09 01 page xxiv of xliv ...
Page 38: ...Rev 1 0 09 01 page xxxviii of xliv ...
Page 44: ...Rev 1 0 09 01 page xliv of xliv ...
Page 60: ...Rev 1 0 09 01 page 16 of 904 ...
Page 96: ...Rev 1 0 09 01 page 52 of 904 ...
Page 116: ...Rev 1 0 09 01 page 72 of 904 ...
Page 148: ...Rev 1 0 09 01 page 104 of 904 ...
Page 284: ...Rev 1 0 09 01 page 240 of 904 ...
Page 422: ...Rev 1 0 09 01 page 378 of 904 ...
Page 634: ...Rev 1 0 09 01 page 590 of 904 ...
Page 656: ...Rev 1 0 09 01 page 612 of 904 ...
Page 668: ...Rev 1 0 09 01 page 624 of 904 ...
Page 780: ...Rev 1 0 09 01 page 736 of 904 ...
Page 796: ...Rev 1 0 09 01 page 752 of 904 ...
Page 806: ...Rev 1 0 09 01 page 762 of 903 ...
Page 808: ...Rev 1 0 09 01 page 764 of 904 ...
Page 921: ...Rev 1 0 09 01 page 877 of 904 ø tBRQOD tBRQOD Figure 24 24 External Bus Request Output Timing ...
Page 938: ...Rev 1 0 09 01 page 894 of 904 ...