MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
879
Preliminary—Subject to Change Without Notice
C_flag = temp_C_flag
end
23.4.8.2.7
Multibit shift/rotate Operations
These operations shift or rotate AS by 2, 4, 8 or 16 bits. Size of shift/rotate is determined by BS[1:0].
describes the number of shifted/rotated bits depending on BS[1:0] value.
Shift right is a logical operation (i.e., zeros are inserted on left). Multibit shift and rotate operations
overrides
BS size to 8 bits. The shifts and rotate operate on 24 bits, independently of the operation size.
V flag is never updated for multibit shift or rotate operations. Carry flag behavior is described on
. CIN is ignored in these operations, but BINV is effective.
23.4.8.2.8
Absolute Value Operation
Absolute Value operation is selected by ALUOP field. On this operation, AS is interpreted as a signed
number and its absolute value is the result. V and N flags are updated with the result signal determined by
the operation size. AS bit 23 after size override and sign extension (if any, see
), regardless of A-source register size, is used to check the operand signal and is
copied to C-flag. Note that if AS is 8-bit or 16-bit, its sign is taken into account and copied to C only if
sign-extension is performed.
summarizes flag updating for Absolute Value operation.
Table 23-48. Number of shifted/rotated bits for each BS[1:0] value
BS[1:0]
Bits Shifted/Rotated
0
2
1
4
2
8
3
16
Table 23-49. Carry flag value on multibit shift/rotate operations
ALUOP
BS[1:0]
C flag value
1
1
CCS/CCSV can disable flag update on multibit shift/rotate, but the
specified flag size in CCSV is ignored for the C flag.
11001 (shift left)
0
AS[22]
11001 (shift left)
1
AS[20]
11001 (shift left)
2
AS[16]
11001 (shift left)
3
AS[8]
11010 (shift right)
0
AS[1]
11010 (shift right)
1
AS[3]
11010 (shift right)
2
AS[7]
11010 (shift right)
3
AS[15]
11011 (rotate right)
0
AS[2]
11011 (rotate right)
1
AS[4]
11011 (rotate right)
2
AS[8]
11011 (rotate right)
3
AS[16]
Содержание MPC5632M
Страница 22: ...MPC563XM Reference Manual Rev 1 22 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 62: ...MPC563XM Reference Manual Rev 1 62 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 92: ...MPC563XM Reference Manual Rev 1 92 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 168: ...MPC563XM Reference Manual Rev 1 168 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 242: ...MPC563XM Reference Manual Rev 1 242 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 302: ...MPC563XM Reference Manual Rev 1 302 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 410: ...MPC563XM Reference Manual Rev 1 410 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 440: ...MPC563XM Reference Manual Rev 1 440 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 464: ...MPC563XM Reference Manual Rev 1 464 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 554: ...MPC563XM Reference Manual Rev 1 554 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 590: ...MPC563XM Reference Manual Rev 1 590 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 622: ...MPC563XM Reference Manual Rev 1 622 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 716: ...MPC563XM Reference Manual Rev 1 716 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1114: ...MPC563XM Reference Manual Rev 1 1114 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1144: ...MPC563XM Reference Manual Rev 1 1144 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1266: ...MPC563XM Reference Manual Rev 1 1266 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1316: ...MPC563XM Reference Manual Rev 1 1316 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1348: ...MPC563XM Reference Manual Rev 1 1348 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1362: ...MPC563XM Reference Manual Rev 1 1362 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1382: ...MPC563XM Reference Manual Rev 1 1382 Freescale Semiconductor Preliminary Subject to Change Without Notice ...