Sprite Attribute 1 (with INC) Register: Difference between revisions

From SpecNext Wiki
Jump to: navigation, search
Core 2.00.26 changes
m 2 revisions imported
(No difference)

Revision as of 10:00, 14 April 2019

Next Register Number $76
Readable No
Writable Yes
Short Description Same as NextReg:$36 (write second byte of sprite-attributes), plus increments NextReg:$34

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

After write into sprite-attribute "byte 2" (NextPort:$xx57), the NextReg:$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.