![SGS TS68483A Скачать руководство пользователя страница 7](http://html1.mh-extra.com/html/sgs/ts68483a/ts68483a_manual_1251271007.webp)
II.2 - Pointers and Geometric Arguments (see
Figure 4)
Pointers are used to specify main geometric argu-
ments and display memory addresses.
II.2.1 - DISPLAY MEMORY ADDRESS
A bit in the display memory is addressed by :
- a bank number
B = 0 to 3
- a plane number
Z = 0 to 3
- an X address
X = 0 to 2047
- a Y addres
Y = 0 to 2047
II.2.2 - DESTINATION POINTER :
Registers R14 to R17
This pointer gives the coordinate (Xd, Yd) and
dimension (DXd, DYd) of either a line or a window
in the drawing coordinate system. These drawing
coordinates are easily mapped into a PEL DIS-
PLAY MEMORY address.
(X, Y) coordinates are clipped to 11 bits in order to
get the Xd, Yd destination pel addresses.
A bank number Bd must be explicitly provided to
address a destination frame buffer. When long pels
are used, Bd must be even.
When masked pels are used, the destination mask
plane number Zd (implicitly in bank 3) must also be
provided.
II.2.3 - SOURCE POINTER : Registers R20 to R23.
A source cell such as a character, a pen or an
object, is addressed by the source pointer in the
display memory.
A source pointer specifies :
- a bank number Bs = 0 to 3
- a Ys address Ys = 0 to 2047
- an Xs address ; this address is a byte address so
that the 3 LSBs are not specified Xs = 0 to 255
- a cell dimension DXs, DYs
- a bit plane address Zs.
When a character is addressed, Zs gives the plane
number into the bank Bs. When an object is ad-
dressed Zs gives the source mask plane number
in the bank B3.
II.2.4 - NOTES :
1. The TRAPEZIUM command makes a special
use of R21. In this case, R21 holds an X1
drawing coordinate which has the same format
as Xd.
2. The ARC and POLYARC commands require
two extra geometric parameters (RAD and
STOP). They are specified in the drawing
coordinates system and stored in registers R18,
R19.
3. Any drawing command may be parametered to
use short incremental dimensions, DXY in
register R13 instead of the standard DXd, DYd
in the ”R16, R17” register pair (see Figure 5).
4. The access commands use the destination
pointer location as a data buffer. The memory
addresses and dimension of the access
viewport are then specified in the source
pointer, independently of the data transfer.
5. DXd, DYd and DYs may specify a negative
value. In this case, they must be coded by a sign
(0 = positive, 1 = negative) and an 11-bit
absolute value.
Table 1 : Command Set Structure
Command
Drawing Mode
Type
Group
Line
Arc
Up to the Pen
Linear
Drawing
Rectangle
Trapezium
Polygon
Polyarc
Monochrome
Area
Print Char
Print Object
Bichrome
Polychrome
Cell
Load Viewport
Save Viewport
Modify Viewport
Access
Management
Move Cursor Abort
Control
68483-04.TBL
TS68483A
7/30