Announcement

Collapse
No announcement yet.

[SNES] GG Codes Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [SNES] GG Codes Question

    So I've been reading this document and I was wondering if someone could translate this ARM9 Assembly into the kind of ASM SNES uses (can someone tell me which kind of Assembly the SNES uses?). It's just an example, but I just want to know if it could be done in SNES similar to how it's done in NDS.

    Code:
    /*This Routine does the following...
     *loads a byte into r0 (not defined, just an example)
     *mov's #1 into r1
     *compares that byte in r0 to 1
     *stores r1 into r0 if r2 != 1
     */
    
    ldr r0,Address
    ldrb r2,[r0]
    mov r1,#0x1
    cmp r2,#0x1
    strne r1,[r0]
    bx lr
    Last edited by Demonic722; 11-06-2011, 10:03:02 PM.
    I only bother with things that interest me.

  • #2
    The SNES only has 3 registers to work with. But for this example you can use the A register.

    Code:
            LDA $1234   You laod the value stored at 1234 and put into A.
            CMP #$0001  Compare A to 1
            BNE end     Skip if not equal else put 1 into A and store at 1234.
    
            LDA #$01
            STA $1234
    end:
            RTS         return from sub routine aka bx lr
    Last edited by nolberto82; 11-06-2011, 10:54:40 PM.

    Comment


    • #3
      Three registers is very unfortunate. I take it that $1234 is an address and the 'A' in "LDA" is a register. You said there are 3 registers so are the other two "LDX" and "LDY"? I'm going to assume there's also a STA, STX, STY for storing as well (correct me if I'm wrong). By the way, is there a compiler for this ASM?
      I only bother with things that interest me.

      Comment


      • #4
        Yes 1234 is an address. Unlike the NDS you don't place addresses in registers you just read or write to them. The 3 registers are:

        Code:
        A = Accumalator
        Y and X = index registers
        There are other registers but this 3 are the most used. If you are serious about it this document should come in handy here.
        The assembler you should look for is xkas.

        Comment


        • #5
          Originally posted by Demonic722 View Post
          Three registers is very unfortunate. I take it that $1234 is an address and the 'A' in "LDA" is a register. You said there are 3 registers so are the other two "LDX" and "LDY"? I'm going to assume there's also a STA, STX, STY for storing as well (correct me if I'm wrong). By the way, is there a compiler for this ASM?
          Sounds like cake right? Things still get hella complex when the programmer's code looks like he didn't have a clue what he was doing... Also if you get proficient with SNES (should be easy coming from NDS), the NES (same 3 main register layout) will be even easier with the fine debugging capabilities of FCEUX.
          Last edited by Abystus; 11-06-2011, 11:17:40 PM.
          Not taking any requests at this time.

          Bored? Watch some of my hacks here.

          Comment


          • #6
            Originally posted by nolberto82 View Post
            Yes 1234 is an address. Unlike the NDS you don't place addresses in registers you just read or write to them. The 3 registers are:

            Code:
            A = Accumalator
            Y and X = index registers
            There are other registers but this 3 are the most used. If you are serious about it this document should come in handy here.
            The assembler you should look for is xkas.
            Thanks for the info, Nolberto!

            Originally posted by Abystus
            Sounds like cake right? Things still get hella complex when the programmer's code looks like he didn't have a clue what he was doing... Also if you get proficient with SNES (should be easy coming from NDS), the NES (same 3 main register layout) will be even easier with the fine debugging capabilities of FCEUX.
            It sounds easy and I'll most likely be able to make codes for SNES. I'm still looking for a console to hack other than NDS and even though SNES seems a bit easy, it's probably not for me. Sorry for wasting your time, Nolberto, but I might come back to this later.

            Slightly off topic: Does anyone know a console that's pretty good to hack other than SNES? I'm thinking about GameCube, but I'd like to hear some opinions from you guys.
            I only bother with things that interest me.

            Comment


            • #7
              Originally posted by Demonic722 View Post
              Thanks for the info, Nolberto!


              It sounds easy and I'll most likely be able to make codes for SNES. I'm still looking for a console to hack other than NDS and even though SNES seems a bit easy, it's probably not for me. Sorry for wasting your time, Nolberto, but I might come back to this later.

              Slightly off topic: Does anyone know a console that's pretty good to hack other than SNES? I'm thinking about GameCube, but I'd like to hear some opinions from you guys.
              I have also been looking to move to a new system, but it seems when I try I am thwarted on a regular basis. I figure either the Wii, NDS, or GBA would be great for me. I assume your using an emulator to hack the NDS correct?
              Last edited by Abystus; 11-06-2011, 11:57:22 PM.
              Not taking any requests at this time.

              Bored? Watch some of my hacks here.

              Comment


              • #8
                Originally posted by Abystus View Post
                I have also been looking to move to a new system, but it seems when I try I am thwarted on a regular basis. I figure either the Wii, NDS, or GBA would be great for me. I assume your using an emulator to hack the NDS correct?
                I might hack either GBA or GCN then. For NDS, I use DesMuMe's emulator and it comes with a built in cheat searcher/RAM viewer. For debugging, I use No$GBA's Debugger. The majority of the new ROMs that are leaked needs to be encrypted with this tool so you can run the game through BIOS on No$GBA's Debugger, but they work fine on Desmume.
                Last edited by Demonic722; 11-07-2011, 12:04:30 AM.
                I only bother with things that interest me.

                Comment


                • #9
                  Originally posted by Demonic722 View Post
                  I might hack either GBA or GCN then. For NDS, I use DesMuMe's emulator and it comes with a built in cheat searcher/RAM viewer. For debugging, I use No$GBA's Debugger. The majority of the new ROMs that are leaked needs to be encrypted with this tool so you can run the game through BIOS on No$GBA's Debugger, but they work fine on Desmume.
                  Thanks for the info. I will have to look into the Desmume emulator along with getting my hands on a copy of No$GBA (it's donate only right?). I figure it's going to be either GBA or NDS, because the Wii emulator (dolphin) currently has major slowdown (less than 1 fps) issues while debugging games. Hopefully my journey turns out to have a happy ending... lol.
                  Not taking any requests at this time.

                  Bored? Watch some of my hacks here.

                  Comment


                  • #10
                    Originally posted by Abystus View Post
                    Thanks for the info. I will have to look into the Desmume emulator along with getting my hands on a copy of No$GBA (it's donate only right?).
                    Not at all. Some good sir leaked the debugger. On that link I sent you, the No$GBA Debugger is on that site, as well as http://www.emuparadise.me/. If all fails, I'll send the copies I have your way if you want. The emulator alone (minus the debugger) is on a bunch of sites.

                    Originally posted by Abystus View Post
                    I figure it's going to be either GBA or NDS, because the Wii emulator (dolphin) currently has major slowdown (less than 1 fps) issues while debugging games. Hopefully my journey turns out to have a happy ending... lol.
                    I can't work with 1 FPS. My computer is slow enough running most emulators. Wii hacking is out of the question for me, heh. I'll be over in the NDS, GBA, and/or GCN Hacking scene.
                    I only bother with things that interest me.

                    Comment


                    • #11
                      If you start NGC hacking count me in, I tried my had a while back with dolphin but it wasnt all that great unless someone knows a good emulator for NGC or if there are any recent versions of Dolphin with better support for games and hacking.
                      Spoiler Alert! Click to view...

                      THE BAD GUY!!!!!!

                      Comment


                      • #12
                        Is anyone even hacking the Gamecube? It seems like there aren't really any codes for that system or maybe I'm not looking in the right places. I should go out and try to find an Action Replay for my old GameCube.
                        I only bother with things that interest me.

                        Comment


                        • #13
                          I know there were plenty of codes people made but most of the standard came from CodeJunkies.
                          Spoiler Alert! Click to view...

                          THE BAD GUY!!!!!!

                          Comment

                          Working...
                          X