Sprite port-mirror Attribute 1 (with INC) Register

From SpecNext official Wiki
Revision as of 11:00, 14 April 2019 by Specnext (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Number $76
Readable No
Writable Yes
Short Description Same as Sprite port-mirror Attribute 1 Register ($36) (write second byte of sprite-attributes), plus increments Sprite port-mirror Index Register ($34)

Eight low bits of Y position. MSB of Y-pos is in "byte 5".

After write into sprite-attribute "byte 2" (Sprite Attribute Upload ($xx57 / 87)), the Sprite port-mirror Index Register ($34) is incremented (with all consequences stemming from such action). If the sprite 127 was modified, the result of the increment is officially "undefined behaviour", and code should explicitly set valid 0..127 sprite index before next sprite-attribute manipulation.