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

From SpecNext Wiki
Jump to: navigation, search
core 2.00.23 changes
 
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
Eight low bits of X position. MSB of X-pos is in "byte 3".
Eight low bits of X position. MSB of X-pos is in "byte 3".


After write into sprite-attribute "byte 1" ({{PortNo|$xx57}}), the {{NextRegNo|$34}} is incremented (with all consequences stemming from such action). If the sprite 63 was modified, the result of the increment is officially "undefined behaviour", and code should explicitly set valid 0..63 sprite index before next sprite-attribute manipulation.
After write into sprite-attribute "byte 1" ({{PortNo|$xx57}}), the {{NextRegNo|$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.

Latest revision as of 12:18, 14 October 2025

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

Eight low bits of X position. MSB of X-pos is in "byte 3".

After write into sprite-attribute "byte 1" ( IO:$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.