Page 1 of 1

Problem scrolling

Posted: Sun Jul 20, 2014 11:14 am
by Kannagi
I have a problem scrolling, I thought it would be simple
but when I write for example:

Code: Select all

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: Select all

lda x
sta $210D
How to scrolling Horizontal and Vertical ?
Thank you for your help.

Re: Problem scrolling

Posted: Sun Jul 20, 2014 12:13 pm
by DoNotWant
You have to write 2 8-bit values to each register.

Code: Select all

lda lowX
sta $210D
lda highX
sta $210D

lda lowY
sta $210E
lda highY
sta $210E

Re: Problem scrolling

Posted: Sun Jul 20, 2014 1:37 pm
by Kannagi
The solution was simple ><
Thank you for your help, I can continue :wink:

Re: Problem scrolling

Posted: Sun Jul 20, 2014 1:49 pm
by DoNotWant
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

Posted: Sun Jul 20, 2014 2:29 pm
by Kannagi
Thank you for documents ;)