Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2013-05-23 21:46:17

ShaneM
Member
From: United States (USA)
Registered: 2013-03-11
Post 72/287
Website

Help Finding X-Loc Value

This is not all that drastic. I am trying to find the address in my debugger for this X-Loc to the trainer sprite to move it more to the right:

bgb00149_zps5a9df59d.png

I found that it is stored as OAM, it's buffered at $C300:

The value for the first tile (tile 00) OAM X-Loc = 51, Y-Loc = 60, Attribute = 80

This is how I found the OAM to the trainer on the title screen:

I looked for the loads with "C300".
I found the routine by doing a search for "ld hl,C300".
And I found that it was in the $C3xx location by looking at the DMA "call FF80" routine, which starts with "ld a,C3". That number "C3" indicates that the sprite table is at location $C300.

My above method did not work in the case of this OAM routine though.

I only found two ld hl C300 for this at ROM0: 0083 and ROM0: 008F. Neither of them have the value close to it.

Here is a .sav file for BGB, if anyone can help. Just rename it to the name of your ROM, leaving the .sav extension.  http://www.mediafire.com/download/3xvuk … anced).sav

Talk to the man right next to the trainer for the diploma. Also, I found the text to be at $567AA, but the sprite function is nowhere close to it.

Last edited by ShaneM (2013-05-23 21:49:04)


I'm back. I'll try not to get as frustrated with stupid questions. People on my naughty list:

*Pokemon_Master
*Noizy
*lipun
*Spambots

Offline

Board footer

Powered by FluxBB