Sprite Attribute 2 Register: Difference between revisions

From SpecNext Wiki
Jump to: navigation, search
Core 2.00.22 changes, and forum knowledge from Jim Bagley distilled.
 
m Xalior moved page Sprite port-mirror Attribute 2 Register to Sprite Attribute 2 Register: match formal nextreg.txt name
 
(2 intermediate revisions by 2 users not shown)
Line 17: Line 17:
| 1 || Enable rotation
| 1 || Enable rotation
|-
|-
| 0 || MSB of X coordinate
| 0 || '''anchor''' sprite: MSB of X coordinate<br />
'''relative''' sprite: enable relative Palette offset (1 = the anchor Palette offset is added, 0 = independent Palette offset)
|}
|}

Latest revision as of 10:52, 14 October 2025

Number TBRegisterNumber::$37
Readable TBRegisterReadable::No
Writable TBRegisterWritable::Yes
Short Description [[ShortDesc::Nextreg port-mirror to write directly into "byte 3" of {{#ask:

PortNumber::$xx57 }} ($xx57{{#ask: PortNumber::$xx57 |mainlabel=- |headers=hide |intro= /  |?NumberDec#- }}).]]

Byte 3 is bitmapped:

Bit Description
4-7 Palette offset, added to each palette index from pattern before drawing
3 Enable X mirror
2 Enable Y mirror
1 Enable rotation
0 anchor sprite: MSB of X coordinate

relative sprite: enable relative Palette offset (1 = the anchor Palette offset is added, 0 = independent Palette offset)