Amiga Hardware Reference Manual - eBook-ENG

Page 216

Table 7-4: CLXCON Bits

Bit Number

Name

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

ENSP7 ENSP5 ENSP3 ENSP1 ENBP6 ENBP5 ENBP4 ENBP3 ENBP2 ENBPI MVBP6 MVBP5 MVBP4 MVBP3 MVBP2 MVBP1

Function Enable sprite 7 (OR with sprite 6) Enable sprite 5 (OR with sprite 4) Enable sprite 3 (OR with sprite 2) Enable sprite 1 (OR with sprite 0) Enable bit-plane 6 (match required for Enable bit-plane 5 (match required for Enable bit-plane 4 (match required for Enable bit-plane 3 (match required for Enable bit-plane 2 (match required for Enable bit-plane 1 (match required for Match value for bit-plane 6 collision Match value for bit-plane 5 collision Match value for bit-plane 4 collision Match value for bit-plane 3 collision Match value for bit-plane 2 collision Match value for bit-plane 1 collision

collision) collision) collision) collision) collision) collision)

Bits 15-12 let you specify that collisions with a sprite pair are to include the oddnumbered sprite of a pair of sprites. The even-numbered sprites always are included in the collision detection. Bits 11-6 let you specify whether to include or exclude specific bit-planes from the collision detection. Bits 5-0 let you specify the polarity (true-false condition) of bits that will cause a collision. For example, you may wish to register collisions only when the object collides with "something green" or "something blue." This feature, along with the collision enable bits, allows you to specify the exact bits, and their polarity, for the collision to be registered.

NOTES This register is write-only. If all bit-planes are excluded (disabled), then a bit-plane collision will always be detected.

204 System Control Hardware


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.