Graphic Orders
BLT2BB_XD
MOTOROLA
MC68322 USER’S MANUAL
13-17
The XOFF:XMUL parameter is divided into two fields. The least-significant four bits contain
the XMUL field, which specifies the factor used to scale the unexpanded source bitmap in
the X dimension. XMUL must equal a specific value from 0–15, which represents a scaling
factor of 1–16. Only certain scaling factors are supported, as defined in Table 13-3. Values
other than those listed are ignored and no X scaling is performed.
The XOFF field occupies the four most-significant bits and indicates the number of bits to be
clipped at the left edge of the expanded source bitmap. XOFF ranges from 0–XMUL. If
XOFF is zero, no clipping occurs at the left extent, but if it is non-zero, XOFF number of bits
in the left edge of the expanded bitmap are skipped and the next bit is the first one
transferred to the destination bitmap. The YOFF:YMUL parameter is also divided into two
fields. The least-significant four bits contain the YMUL field, which specifies the factor used
to scale the unexpanded source bitmap in the Y dimension. YMUL can equal any value from
0–15, which represents a scaling factor of 1–16. The YOFF field occupies the four
most-significant bits and indicates the number of scanlines to be clipped at the top or bottom
edge of the expanded source bitmap, depending on the value of the B2T flag. When B2T is
clear, YOFF is defined from the top edge of the source bitmap. When B2T is set, YOFF is
defined from the bottom edge. YOFF ranges from 0–YMUL. If YOFF is zero, no clipping
occurs at the top or bottom extent, but if it is non-zero, YOFF number of scanlines at the top
or bottom edge of the expanded bitmap are skipped and the next scanline is the first line
transferred to the destination bitmap.
A band fault is detected when the transfer frame extends past the end of the destination
bitmap, which is defined by the EOBPA operand in the SET_BBMAP graphic order. When
a band fault is detected, the MC68322 rewrites the graphic order to update its operands. The
BAND number is incremented (or decremented, when the B2T flag is set), DA and SA are
repositioned to the starting pixel of the respective frame to be processed in the next band,
and YOFF is updated according to the current position in the expanded source bitmap.
Lastly, FH is written back with the number of scanlines in the frame to be transferred.
Related Graphic Orders
SET_BOOL_SD
SET_BBMAP
Table 13-3. Supported Scaling Factors
EXPANSION FACTOR
XMUL VALUE
1
0
2
1
3
2
4
3
6
5
8
7
12
11
16
15
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.