AR Code making help

Discussion in 'NDS - Console and Game Discussions' started by RengarRengar, Dec 3, 2012.

  1. RengarRengar

    RengarRengar Newbie

    Feb 20, 2012
    United States
    So I'm trying to make an AR code which increases a certain value by 1 every time I press the Select Button.

    So for this is what I've come up with

    94000130 FFFB0000
    DA000000 [ADDRESS]
    D4000000 00000001
    D7000000 [ADDRESS]
    D2000000 00000000
    The problem here is that D7000000 increases the offset, so instead of the value increasing by 1, it goes up by 1 -> 5 (4 + 1) -> 9 (8 + 1)
    Is there any way for me to reset the offset back to its original value or just increase a certain value by 1 without touching the offset?
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    Nov 21, 2005
    United Kingdom
    We do have a dedicated hacking section you know-
    As the cheats forum presently appears to be down and with it the copy of enhacklopedia hosted there I guess there is which I will be referencing here.

    Other than using button registers rather than debounced stuff most of it looks pretty solid. I am not much of a cheat code maker but while theoretically the D2 code should reset values for the next pass I guess it is not so in your situation.
    I can not think of an easy increment value code other than what you have so I will stick with that.
    If D2 is not working for some reason then my two main options would be either
    Force the offset to 0 - D3 is set offset so "D3000000 00000000" should do it.
    Force a single loop of the code
    You have no C0000000 code to tell it how many times to loop, again I would have thought D2 would have taken care of all that but who knows. I am not quite sure whether the payload wants to be 0 or 1 for this (depends whether it actually means execute X times or redo/loop X times).