mc9s12xd256 Freescale Semiconductor, Inc, mc9s12xd256 Datasheet - Page 218

no-image

mc9s12xd256

Manufacturer Part Number
mc9s12xd256
Description
Hcs12x Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAA
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAG
Manufacturer:
FREESCALE
Quantity:
1 540
Part Number:
mc9s12xd256CAG
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Chapter 6 XGATE (S12XGATEV2)
ADDH
Operation
RD + IMM8:$00
Adds the content of high byte of register RD and a signed immediate 8 bit constant using binary addition
and stores the result in the high byte of the destination register RD. This instruction can be used after an
ADDL for a 16 bit immediate addition.
Example:
CCR Effects
Code and CPU Cycles
218
N:
Z:
V:
C:
ADDH RD, #IMM8
N
Set if bit 15 of the result is set; cleared otherwise.
Set if the result is $0000; cleared otherwise.
Set if a two´s complement overflow resulted from the operation; cleared otherwise.
RD[15]
Set if there is a carry from the bit 15 of the result; cleared otherwise.
RD[15]
Z
ADDL
ADDH
V
Source Form
old
old
& IMM8[7] & RD[15]
& IMM8[7] | RD[15]
C
R2,#LOWBYTE
R2,#HIGHBYTE
RD
old
new
& RD[15]
Add Immediate 8 bit Constant
Address
MC9S12XDP512 Data Sheet, Rev. 2.17
| RD[15]
Mode
IMM8
; R2 = R2 + 16 bit immediate
new
old
(High Byte)
1
& IMM8[7] & RD[15]
| IMM8[7] & RD[15]
1
1
0
1
Machine Code
RD
new
new
IMM8
ADDH
Freescale Semiconductor
Cycles
P

Related parts for mc9s12xd256