SPC8106 S-MOS Systems, SPC8106 Datasheet - Page 284
![no-image](/images/no-image-200.jpg)
SPC8106
Manufacturer Part Number
SPC8106
Description
LCD/CRT VGA CONTROLLER
Manufacturer
S-MOS Systems
Datasheet
1.SPC8106.pdf
(432 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
SPC8106F0C
Manufacturer:
EPSON
Quantity:
912
Company:
Part Number:
SPC8106FOB
Manufacturer:
EPSON
Quantity:
430
Company:
Part Number:
SPC8106FOC
Manufacturer:
OMRON
Quantity:
2 000
- Current page: 284 of 432
- Download datasheet (2Mb)
8.1
The displayed position of the sprite and any required clipping is done with CRTC registers 30h
through 35h. Clipping of the sprite image on the right and bottom of the display is done automati-
cally by the hardware. If the sprite image needs to be clipped on the top or left of the display the
clipped amount needs to be calculated and set into the appropriate registers.
All position calculations are based on absolute pixel positions. This holds even for text modes,
which means the sprite image location is not limited to character cell boundaries, but may be
placed on any pixel on the display. Sprite positioning information is always relative to the upper
left corner of the sprite image and to the upper left corner of the display. The following example
demonstrates how to program a cursor image located in the lower left qaudrant of the sprite as
this covers all positioning considerations.
In general the algorithm for cursor position and clipping is:
The following example is typical of the logic to program a cursor position with coordinates passed
by Microsoft Windows.
Programming Notes and Examples
SP3-58
/* Calculate the Xposition and Xstart. */
CursorX = CursorPos - HotSpot // nCursorX = raw X position
if (CursorX > 0) {
else {
/* Now program the X position registers. */
// First the X start register is set. This value informs the
// hardware how many pixels to count across into the image
// before starting display.
outp (CRTC, 34H);
Setting the Displayed Sprite Position
S-MOS Systems, Inc. • Tel: (408) 922-0200 • Fax: (408) 922-0238 • http://www.smos.com
Xpos = CursorX;
Xstart = 0;
}
Xpos = 0;
Xstart = 0 - CursorX
}
Xpos = 0 - SpriteLeft
Xstart = 0
YES
// (SpriteLeft)
SpriteLeft = 0
X12-AN-003-02
Xpos = 0
Xstart = 0 - SpriteLeft
NO
411-1.0
SPC8106
Related parts for SPC8106
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![SRM20256L](/images/no-image3.png)
Part Number:
Description:
CMOS 256K-Bit Static RAM
Manufacturer:
S-MOS Systems
Datasheet:
![SPC8104](/images/no-image3.png)
Part Number:
Description:
VGA LCD CONTROLLER
Manufacturer:
S-MOS Systems
Datasheet:
![SRM20256L](/images/no-image3.png)
Part Number:
Description:
CMOS 256K-Bit Static RAM
Manufacturer:
S-MOS Systems
Datasheet: