English
Language : 

S912XEG128J2MAA Datasheet, PDF (403/1324 Pages) Freescale Semiconductor, Inc – Microcontrollers
BFINSI
Bit Field Insert and Invert
Chapter 10 XGATE (S12XGATEV3)
BFINSI
Operation
!RS1[w:0] ⇒ RD[w+o:o];
w = (RS2[7:4])
o = (RS2[3:0])
Extracts w+1 bits from register RS1 starting at position 0, inverts them and writes into register RD starting
at position o. The remaining bits in RD are not affected. If (o+w) > 15 the upper bits are ignored. Using
R0 as a RS1, this command can be used to set bits.
15
7
43
0
W4
O4
RS2
15
3
0
RS1
15
CCR Effects
NZVC
∆ ∆ 0—
Inverted Bit Field Insert
5
2
W4=3, O4=2
0
RD
N: Set if bit 15 of the result is set; cleared otherwise.
Z: Set if the result is $0000; cleared otherwise.
V: 0; cleared.
C: Not affected.
Code and CPU Cycles
Source Form
BFINSI RD, RS1, RS2
Address
Mode
TRI
01110
Machine Code
RD
RS1
Cycles
RS2 1 1
P
MC9S12XE-Family Reference Manual Rev. 1.25
Freescale Semiconductor
403