Sprite port-mirror Attribute 4 Register

From SpecNext official Wiki
Revision as of 11:08, 24 December 2018 by wiki>Ped7g (Core 2.00.22 changes, and forum knowledge from Jim Bagley distilled.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Number $39
Readable No
Writable Yes
Short Description Nextreg port-mirror to write directly into "byte 5" of Sprite Attribute Upload ($xx57 / 87).

Byte 5 is bitmapped:

Bit Description
7 If 1, the pattern will be treated as 4-bit colour one (128 bytes), 0 is for 8-bit colour patterns (256 bytes)
6 Chooses top/bottom part of pattern slot (for 4-bit colour patterns)

0 will target bytes 0..127 of pattern "Name" (byte 4), 1 will target bytes 128..255 of pattern "Name".

5 Reserved, use always 0
4-3 x-axis scale factor: %00 = 1x (16 pixels), %01 = 2x, %10 = 4x, %11 = 8x (128 pixels)
2-1 y-axis scale factor: %00 = 1x (16 pixels), %01 = 2x, %10 = 4x, %11 = 8x (128 pixels)
0 MSB of Y coordinate

See Sprite Attribute Upload ($xx57 / 87) for extra notes about coordinates and clipping.