Assistance In Finding SCX (Scroll Loc X)

Discussion of programming and development for the original Game Boy and Game Boy Color.
Post Reply
User avatar
ShaneM
Posts: 353
Joined: Wed Apr 04, 2012 4:15 pm
Location: United States of America (USA)
Contact:

Assistance In Finding SCX (Scroll Loc X)

Post by ShaneM »

I hacked the OAM of the Green Trainer just like in Green jap for my upcoming hack, but:

The monsters on the Title Screen are on the same side as the Trainer, how do I locate the SCX to move them if they are not OAM?

Image

Image



I tried to trace the code using BGB 1.4.1. In RAM the routine is Called from 0D:727C

0D:7298 controls the scrolling.

It loads a value into SCX.

I was able to locate the routine, but how do I find the value? I tried searching Pokemon Red's main.asm for this but can't locate it. Could somebody please give some advice, thanks. :)

Should I be looking for an ld de,XX or what mnemonic should I look out for?
Post Reply