ROM Hack Beginner at gba asm hacking, question about break points

Zalor

New Member
OP
Newbie
Joined
Mar 14, 2016
Messages
2
Trophies
0
Age
27
XP
52
Country
United States
I'm fairly new to the gba asm hacking scene, and have mostly been learning through trial and error and from tutorials here and there. Additionally, I have very little programming knowledge. I understand how hexadecimal works, and have some knowledge of memory hacking. Just to give an idea of where I am coming from.

My question is about setting breakpoints in no$gba's special debugger emulator. I am having trouble where I will set the debugger to break at a certain value, and nothing happens. Specifically, I know a character's hp address in the game's memory is in 02007a14, but when I type this address as a break point, I get nothing. Even when the character takes damage and I know that the value in the address is getting modified, the debugger doesn't break. I apologize for such a noob question, but could somebody explain what I am doing wrong?

Additionally, could somebody also give me some general advice on how to learn asm hacking as a beginner. The few other times I asked for help regarding asm for the gba, people just linked me to this: http://re-eject.gbadev.org/files/thumbref.pdf, which doesn't really explain much for me. So if somebody could help a noob such as myself figure out how to start off, I would really appreciate it.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,377
Country
United Kingdom
For a beginner then I like
http://www.coranac.com/tonc/text/asm.htm
It will not cover much for hacking and I hesitate to link the following if you are using no$gba debugger as it is for another GBA debugger but it does cover some of the breakpoints available in lots of debugging tools such that you might get a better idea. https://web.archive.org/web/20150428020823/http://labmaster.bios.net.nz/vba-sdl-h/
Depending upon what breakpoint you have set then you might not get anything -- if you set an execute breakpoint when you instead want a read or write (or access) breakpoint then it is not going to do much.
no$gba help is pretty good as well, the reference guide to GBA hardware that most of us use is drawn from them ( http://problemkaputt.de/gbatek.htm ).

I cover some basic assembly, though with a slight DS focus (not that is matters hugely), in http://gbatemp.net/threads/gbatemp-rom-hacking-documentation-project-new-2016-edition-out.73394/ as well.
 

Normmatt

Former AKAIO Programmer
Member
Joined
Dec 14, 2004
Messages
2,161
Trophies
1
Age
33
Website
normmatt.com
XP
2,214
Country
New Zealand
I'm fairly new to the gba asm hacking scene, and have mostly been learning through trial and error and from tutorials here and there. Additionally, I have very little programming knowledge. I understand how hexadecimal works, and have some knowledge of memory hacking. Just to give an idea of where I am coming from.

My question is about setting breakpoints in no$gba's special debugger emulator. I am having trouble where I will set the debugger to break at a certain value, and nothing happens. Specifically, I know a character's hp address in the game's memory is in 02007a14, but when I type this address as a break point, I get nothing. Even when the character takes damage and I know that the value in the address is getting modified, the debugger doesn't break. I apologize for such a noob question, but could somebody explain what I am doing wrong?

Additionally, could somebody also give me some general advice on how to learn asm hacking as a beginner. The few other times I asked for help regarding asm for the gba, people just linked me to this: http://re-eject.gbadev.org/files/thumbref.pdf, which doesn't really explain much for me. So if somebody could help a noob such as myself figure out how to start off, I would really appreciate it.
Your setting the breakpoint wrong most likely.... it should be "[02007a14]!" if you want to break on changed writes to that address or "[02007a14]!!" to break on any writes or "[02007a14]?" if you want to break on any reads.
 

Zalor

New Member
OP
Newbie
Joined
Mar 14, 2016
Messages
2
Trophies
0
Age
27
XP
52
Country
United States
For a beginner then I like
http://www.coranac.com/tonc/text/asm.htm
It will not cover much for hacking and I hesitate to link the following if you are using no$gba debugger as it is for another GBA debugger but it does cover some of the breakpoints available in lots of debugging tools such that you might get a better idea. https://web.archive.org/web/20150428020823/http://labmaster.bios.net.nz/vba-sdl-h/
Depending upon what breakpoint you have set then you might not get anything -- if you set an execute breakpoint when you instead want a read or write (or access) breakpoint then it is not going to do much.
no$gba help is pretty good as well, the reference guide to GBA hardware that most of us use is drawn from them ( http://problemkaputt.de/gbatek.htm ).

I cover some basic assembly, though with a slight DS focus (not that is matters hugely), in http://gbatemp.net/threads/gbatemp-rom-hacking-documentation-project-new-2016-edition-out.73394/ as well.

Thanks for all the links to the resources. The first link is great, and I actually started reading it a couple days ago. Also your guide is really extensive, and I plan on working my way through it as well.

Your setting the breakpoint wrong most likely.... it should be "[02007a14]!" if you want to break on changed writes to that address or "[02007a14]!!" to break on any writes or "[02007a14]?" if you want to break on any reads.

Thank you so much, you were correct. I was setting the break points wrong. I tried your suggestion for when the game writes to the address, and it worked! Is there an instruction set for setting breakpoints in the no$gba debugger like there is for the vba one?
 
  • Like
Reactions: Pablitox

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
    cearp @ cearp: It's nice to not have to have a lot of physical things though, saves space +1