Problem scrolling

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
Kannagi
Posts: 100
Joined: Sun May 11, 2014 8:36 am
Location: France

Problem scrolling

Post 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.
Attachments
main.smc
(256 KiB) Downloaded 94 times
DoNotWant
Posts: 83
Joined: Sun Sep 30, 2012 3:44 am

Re: Problem scrolling

Post 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
Kannagi
Posts: 100
Joined: Sun May 11, 2014 8:36 am
Location: France

Re: Problem scrolling

Post by Kannagi »

The solution was simple ><
Thank you for your help, I can continue :wink:
DoNotWant
Posts: 83
Joined: Sun Sep 30, 2012 3:44 am

Re: Problem scrolling

Post 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
Kannagi
Posts: 100
Joined: Sun May 11, 2014 8:36 am
Location: France

Re: Problem scrolling

Post by Kannagi »

Thank you for documents ;)
Post Reply