Problem scrolling

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Problem scrolling
by on (#131347)
I have a problem scrolling, I thought it would be simple
but when I write for example:
Code:
lda x
sta $210D

lda y
sta $210E

There is a bug, Horizontal and Vertical scrolling does not work , x becomes vertical.
I put my demo, I remove a bug, I've written only :
Code:
lda x
sta $210D

How to scrolling Horizontal and Vertical ?
Thank you for your help.
Re: Problem scrolling
by on (#131351)
You have to write 2 8-bit values to each register.

Code:
lda lowX
sta $210D
lda highX
sta $210D

lda lowY
sta $210E
lda highY
sta $210E
Re: Problem scrolling
by on (#131353)
The solution was simple ><
Thank you for your help, I can continue :wink:
Re: Problem scrolling
by on (#131354)
https://www.dropbox.com/s/bti17njwagvw7c5/regs.txt
This document have been very helpful to me.

Edit: This is also good;
http://problemkaputt.de/fullsnes.htm
Re: Problem scrolling
by on (#131355)
Thank you for documents ;)