Register - Scroll: Difference between revisions

From NerdConsole
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 22: Line 22:


{| class="wikitable"
{| class="wikitable"
! Background !! X Address !! Y Address
! Background !! X Scroll Address !! Y Scroll Address
|-
|-
| style='text-align:center' | 0 || $0280 - $0281 || $0282 - $0283
| style='text-align:center' | 0  
| style='text-align:center' | $0280 - $0281  
| style='text-align:center' | $0282 - $0283
|-
|-
| style='text-align:center' | 1 || $0284 - $0285 || $0286 - $0287
| style='text-align:center' | 1  
| style='text-align:center' | $0284 - $0285  
| style='text-align:center' | $0286 - $0287
|-
|-
| style='text-align:center' | 2 || $0288 - $0289 || $028A - $028B
| style='text-align:center' | 2  
| style='text-align:center' | $0288 - $0289  
| style='text-align:center' | $028A - $028B
|-
|-
| style='text-align:center' | 3 || $028C - $028D || $028E - $028F
| style='text-align:center' | 3  
| style='text-align:center' | $028C - $028D  
| style='text-align:center' | $028E - $028F
|}
|}


This register is a part of the [[Control Page]].
This register is a part of the [[Control Page]].

Latest revision as of 20:49, 23 January 2024

Scroll registers represent the position of the upper/left corner of the screen within the space of the main name table. Any part of the screen that would pass an edge of the name table wraps back to the opposite side vertically or horizontally.

Bit 7 6 5 4 3 2 1 0
Byte 0 x x x x x x x x
Byte 1 - - - - - - - x
Byte 2 y y y y y y y y
Byte 3 - - - - - - - y

Key

  • x - The X value. [0-511]
  • y - The Y value. [0-511]
Background X Scroll Address Y Scroll Address
0 $0280 - $0281 $0282 - $0283
1 $0284 - $0285 $0286 - $0287
2 $0288 - $0289 $028A - $028B
3 $028C - $028D $028E - $028F

This register is a part of the Control Page.