Atari ST series Technical Reference Manual page 152

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

The first of the routines that use a fill pattern is the Hor­
izontal Line function ($A004). This function is similar to Arbi­
trary Line, except it is only used when Y1 and Y2 are the
same. It is a bit faster in execution than Arbitrary Line. The
input variables required for this function are shown in Table
7-1.
Table 7-1. Input Variables for Horizontal Line Function
Offset Name
Offset
COLBITO
$18
COLBIT1
$1A
COLBIT2
$1C
COLBIT3
$1E
WMODE
$24
XI
$26
Y1
$28
X2
$2A
PATPTR
$2E
PATMSK
$32
MFILL
$34
The first seven of these variables should be familiar from
the Arbitrary Line function, above. The last three, however,
pertain to the fill pattern. PATPTR contains a pointer to the
array of line masks that form the fill pattern mask. PATMSK
is used as an index into the pattern array and should contain
the length of the array (in words), minus one. MFILL is a
flag that indicates whether the pattern contains a single color
plane, or multiple bit planes. A zero indicates a single bit
plane, in which case WMODE as well as the COLBIT vari­
ables determine the pattern color. A nonzero value indicates
a multiplane fill, which replaces the destination bitplanes
without regard for WMODE.
The next filled shape function is Filled Rectangle
($A005). This function draws a series of filled horizontal lines
of equal length. The input values it requires are shown in Ta­
ble 7-2.
Table 7-2. Input Values for Filled Rectangle Function
Offset Name
Offset
COLBITO
$18
COLBIT1
$1A
COLBIT2
$1C
COLBIT3
$1E
144
CHAPTER 7
Description
Bit value for color plane 0
Bit value for color plane 1
Bit value for color plane 2
Bit value for color plane 3
Writing mode
Starting x coordinate
Starting (and ending) y coordinate
Ending x coordinate
Pointer to fill pattern array
Pattern index (length - 1)
Multicolor fill pattern flag (zero = single
plane, nonzero = multi-plane)
Description
Bit value for color plane 0
Bit value for color plane 1
Bit value for color plane 2
Bit value for color plane 3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents