Announcement

Collapse
No announcement yet.

converting GB codes for SGB

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

  • converting GB codes for SGB

    According to this FAQ it is possible to use the Game Genie with a Super Gameboy.
    Besides, bsnes/hugin is able to emulate the SGB quite good and has cheat support.

    Now, how can i convert a GB Game Genie code for use with the SGB?
    I expect the GB memory to be mapped at a fixed address in the SNES memory, so the conversion formula should be something like:
    (SGB base address) + (address) : (value)
    Last edited by eadmaster; 05-10-2013, 10:44:17 AM.
    Codes and requests made by me

  • #2
    This is only speculation until I can test it on my hardware, but try gbaddress | 0x8F8000. | is bitwise OR in case you didn't know.

    Either the entire gb rom is in memory starting around 0x8F0000, or it's being paged in the 0x8F8000 - 0x900000 region. If the former is true, there can be no direct conversion unless the byte being changed is on the first page, or you account for the page offset. If the latter is true, they can all be directly converted however since the snes genie doesn't consider compare bytes (since the snes doesn't page rom) it may screw up other aspects of the game.

    I intend to figure this out today, unless somebody else already knows. It's most likely the latter option, but I won't know until I test it out.

    EDIT:
    The SGB runs way too slow when attached to the genie, probably because I haven't finished my GenieFX mod. The SGB has the expansion tabs, and the genie doesn't support them out of the box.

    After more speculation, I think the latter option makes much more sense, so it should work. Unfortunately I won't be able to test on hardware until I finish my geniefx mod, and I don't know when I'll be up to doing that.
    Please put all complaints in writing and submit them here.

    Above link not working? Try here.

    Comment


    • #3
      After all of that, I hope you meant a SNES Game Genie.

      If you did, then that's how I answered your question.

      If you meant a GB GG, like the faq you linked to did, then there isn't conversion necessary, but there is a hardware mod necessary since the GB GG's skirt gets in the way.
      Please put all complaints in writing and submit them here.

      Above link not working? Try here.

      Comment


      • #4
        Yes, i meant the SNES Game Genie, or what bsnes is emulating...

        So, i'm trying to write a converter in python:
        Code:
        gbaddress = 0xD051 # raw address value here
        base = 0x8F8000
        print(hex(gbaddress|base))
        Is it correct?

        I've tried a few codes with SML and Metroid2 but it's not working...
        eg.:
        Metroid2 - Infinite Life = D051:99
        after the conversion i get "905051:99"
        Last edited by eadmaster; 05-10-2013, 05:53:56 PM.
        Codes and requests made by me

        Comment


        • #5
          Originally posted by eadmaster View Post
          Is it correct?
          No, because rimsky82 gave you the gb rom location not RAM location.
          lee4 Does Not Accept Codes Requests !
          When lee4 asks a question it does not mean lee4 will look at your game
          *How to create and use SegaCD codes >click here<*
          >)

          Comment


          • #6
            Originally posted by lee4 View Post
            No, because rimsky82 gave you the gb rom location not RAM location.
            Exactly. The ROM should be (theoretically at this point) paged between 0x8F8000 - 0x8FFFFF. I don't know where the RAM lives in the SGB, or even if it's reachable by the Genie, I doubt it.

            As far as Gameboy is concerned, you'll know it's a RAM address if it's >= 0x8000.
            Please put all complaints in writing and submit them here.

            Above link not working? Try here.

            Comment


            • #7
              By the way, I'm all for figuring this stuff out, if for nothing else than to know more about the SGB. But if you're using it to cheat, using emulation, then what's the point? BSNES lets you cheat without going through all of this garbage.
              Please put all complaints in writing and submit them here.

              Above link not working? Try here.

              Comment


              • #8
                you mean using the builtin bsnes cheat finder?
                If the GB memory is isolated from the SNES probably it won't work...

                Btw there are indeed other cheating methods, like statically patching GG codes into the GB ROMs, or using a process-level cheater like Cheat Engine.
                Last edited by eadmaster; 05-11-2013, 02:19:34 PM.
                Codes and requests made by me

                Comment

                Working...
                X