gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

ASM > Can't find where pointers are loaded into a register

#62580 - Jango - Fri Dec 02, 2005 5:58 pm

Hi,

I ve a problem with dissassembled GBA code (ARM ARM7TDMI):

I ve two series of pointers at these adress:

Adress Pointer

0x80071DC 0x30037CC
0x80071E0 0x30037C0
0x80071E4 0x30035C0
0x80071E8 0x30037D0
0x80071EC 0x3003870
0x80071F0 0x30038C0
0x80071F4 0x3003910
0x80071F8 0x3003960
0x80071FC 0x3003590

0x800770C 0x30037CC
0x8007710 0x30037C0
0x8007714 0x30035C0
0x8007718 0x30037D0
0x800771C 0x3003870
0x8007720 0x30038C0
0x8007724 0x3003910
0x8007728 0x3003960
0x800772C 0x3003590

Thi information i'm looking for is at: 0x30037D0,
0x3003870, 0x30038C0, 0x3003910, 0x3003960

Anyway i can't find where in the code are these pointers loaded into a register

Can anyone help me ?

Thank you very much in advance

Jango

#62687 - Jango - Sun Dec 04, 2005 12:10 pm

no one to help me ?

#62689 - SittingDuck - Sun Dec 04, 2005 12:38 pm

I don't understand your question.

#62697 - keldon - Sun Dec 04, 2005 2:45 pm

If you can change the pointer to point to somewhere will you will get some sort of memory error when you try to access the value being pointed to.

#62698 - SittingDuck - Sun Dec 04, 2005 3:00 pm

What sort of memory error? What are you trying to change?

#62699 - keldon - Sun Dec 04, 2005 3:19 pm

Any sort of error that would make nocash halt - such as accessing a memory address which does not exist if it would make nocash halt.

#62719 - Miked0801 - Mon Dec 05, 2005 12:06 am

They will most likely be loaded with the ldr macro - which pulls them from the local pool. Does this help?

#62763 - Jango - Mon Dec 05, 2005 2:45 pm

Hi,

Thank you Miked0801 can u please explain a little bit with an example please ?

Thank you too keldon it's a good idea i will try that and see where it i get the error (if i get one) ...

What i would like to do is: i ve some ascii text loaded at 0x30037D0 i would like to see the code which load (from the ROM) this text at this adress

#62777 - poslundc - Mon Dec 05, 2005 6:15 pm

For the record - and while I'm not an admin - discussion of ROM-hacking techniques is generally seen as a prohibited topic in this forum, which I think is part of the reason you're only getting lackluster responses.

You may want to try the boards over at http://board.acmlm.org. If I've got you wrong, you might try explaining what it is you're trying to do, and why.

Dan.

#62915 - Jango - Tue Dec 06, 2005 10:20 pm

I'm trying to do rom hack...