Rev. 2.0, 11/00, page 36 of 1037
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 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
B
@ERd - 0, 1
→
(<bit 7> of @ERd)
*
2
Tests memory contents, and sets the most significant bit (bit 7)
to 1
Note:
*
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 Hitachi H8S/2191
Page 123: ...Rev 2 0 11 00 page 96 of 1037...
Page 149: ...Rev 2 0 11 00 page 122 of 1037...
Page 197: ...Rev 2 0 11 00 page 170 of 1037...
Page 247: ...Rev 2 0 11 00 page 220 of 1037...
Page 249: ...Rev 2 0 11 00 page 222 of 1037...
Page 347: ...Rev 2 0 11 00 page 320 of 1037...
Page 357: ...Rev 2 0 11 00 page 330 of 1037...
Page 417: ...Rev 2 0 11 00 page 390 of 1037...
Page 431: ...Rev 2 0 11 00 page 404 of 1037...
Page 439: ...Rev 2 0 11 00 page 412 of 1037...
Page 457: ...Rev 2 0 11 00 page 430 of 1037...
Page 525: ...Rev 2 0 11 00 page 498 of 1037...
Page 543: ...Rev 2 0 11 00 page 516 of 1037...
Page 845: ...Rev 2 0 11 00 page 818 of 1037...