English
Language : 

NS32FV16 Datasheet, PDF (24/104 Pages) Texas Instruments – Advanced Imaging/Communication Signal Processors
2 0 Architectural Description (Continued)
curs any time the screen is moved in a purely vertical direc-
These five instructions perform standard BITBLT operations
tion as in scrolling text It should be noted that in both of
between source and destination blocks The operations
these cases the choice of horizontal BITBLT direction may
available include the following
be made arbitrarily
BBAND
src AND dst
Figure 2-22(b) demonstrates a case in which the horizontal
bsrc AND dst
BITBLT direction may not be chosen arbitrarily This is an
BBOR
src OR dst
instance of purely horizontal movement of data (panning)
bsrc OR dst
Because the movement from source to destination involves
BBXOR
src XOR dst
data within the same scan line the incorrect direction of
bsrc XOR dst
movement will overwrite data which will be needed later In
BBFOR
src OR dst
this example the correct direction is from right to left
BBSTOD
src TO dst
2 5 2 5 BITBLT Variations
bsrc TO dst
The ‘‘classical’’ definition of BITBLT as described in
‘src’ and ‘bsrc’ stand for ‘True Source’ and ‘Inverted
Source’ respectively ‘dst’ stands for ‘Destination’
‘‘Smalltalk-80 The Language and its Implementation’’ by
Adele Goldberg and David Robson provides for three oper-
ands source destination and mask texture This third oper-
and is commonly used in monochrome systems to incorpo-
rate a stipple pattern into an area These stipple patterns
provide the appearance of multiple shades of gray in single-
bit-per-pixel systems in a manner similar to the ‘‘halftone’’
process used in printing
x Texture op1 Source op2 Destination Destination
While the NS32FX164 and the external BPU (if used) are
te essentially two-operand devices three-operand BITBLT op-
erations can be implemented quite flexibly and efficiently by
performing the two operations serially
2 5 3 GRAPHICS SUPPORT INSTRUCTIONS
The NS32FX164 provides eleven instructions for supporting
graphics oriented applications These instructions are divid-
ed into three groups according to the operations they per-
le form General descriptions for each of them and the related
formats are provided in the following sections
2 5 3 1 BITBLT (BIT-aligned BLock Transfer)
This group includes seven instructions They are used to
move characters and objects into the frame buffer which will
be printed or displayed One of the instructions works in
o conjunction with an external BITBLT Processing Unit (BPU)
to maximize performance The other six are executed by the
NS32FX164
BIT-aligned BLock Transfer
s Syntax BB(function) Options
b Setup
R0
R1
R2
R3
R4
R5
R6
R7
0(SP)
base address source data
base address destination data
shift value
height (in lines)
first mask
second mask
source warp (adjusted)
destination warp (adjusted)
width (in words)
O Function AND OR XOR FOR STOD
Note 1 For speed reasons the BB instructions require the masks to be
specified with respect to the source block In Figure 2-21 masking
was defined relative to the destination block
Note 2 The options bS and DA are not available for the BBFOR instruc-
tion
Note 3 BBFOR performs the same operation as BBOR with IA and S op-
tions
Note 4 IA and DA are mutually exclusive and so are S and bS
Note 5 The width is defined as the number of words of source data to read
Note 6 An odd number of bytes can be specified for the source warp
However word alignment of source scan lines will result in faster
execution
The horizontal and vertical directions of the BITBLT opera-
tions performed by the above instructions with the excep-
tion of BBFOR are both programmable The horizontal di-
rection is controlled by the IA and DA options The vertical
direction is controlled by the sign of the source and destina-
tion warps Figure 2-23 and Table 2-3 show the format of
the BB instructions and the encodings for the ‘op’ and ‘i’
fields
23
16 15
87
0
0 0 0 0 0 0 D X S 0 op i 0 0 0 0 1 1 1 0
 D is set when the DA option is selected
 S is set when the bS option is selected
 X is set for BBAND and it is clear for all other BB instructions
FIGURE 2-23 BB Instructions Format
TABLE 2-3 ‘op’ and ‘i’ Field Encodings
Instruction Options ‘op’ Field ‘i’ Field
BBAND
Yes
1010
11
BBOR
Yes
0110
01
BBXOR
Yes
1110
01
BBFOR
No
1100
01
BBSTOD
Yes
0100
01
BIT-aligned Word Transfer
Syntax BITWT
Options IA
Increasing Address (default option)
Setup R0 Base address source word
When IA is selected scan lines are
R1 Base address destination double word
transferred in the increasing BIT BYTE
R2 Shift value
order
The BITWT instruction performs a fast logical OR operation
DA Decreasing Address
between a source word and a destination double word
S
True Source (default option)
bS Inverted Source
stores the result into the destination double word and incre-
ments registers R0 and R1 by two Before performing the
OR operation the source word is shifted left (i e in the
direction of increasing bit numbers) by the value in register
R2
23