The PokéCommunity Forums Fan Games ROM Hacking
ASM & Hex Encrypt Variable

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.


Reply
 
Thread Tools
  #1    
Old May 7th, 2018 (8:40 PM). Edited May 8th, 2018 by Koople.
Koople Koople is offline
     
    Join Date: Nov 2016
    Nature: Sassy
    Posts: 50
    Hi there,

    I've been trying to write values to variables stored in the DMA RAM. I've tried calling 0806e454 to get the address of the variable and then strh to store my desired value, but this doesn't seem to work. Is there a separate store/encrypt variable function? My knowledge of how the DMA memory works is limited.

    Thanks.

    EDIT: just kidding, my process was correct I just had other bugs in my code.
    Reply With Quote

    Relevant Advertising!

      #2    
    Old May 8th, 2018 (8:33 AM). Edited May 8th, 2018 by miksy91.
    miksy91's Avatar
    miksy91 miksy91 is online now
    Dark Energy is back in action! ;)
       
      Join Date: Oct 2008
      Location: Finland
      Gender: Male
      Posts: 1,447
      Hi,

      Not sure if I can help, but what are you trying to accomplish exactly? Are you just trying to experiment how DMA transfer in GBA works, or do you think you have an actual need for using it? I would assume that you don't have to use DMA unless you need to load / move lots of data in the ram at the same time.

      Also what comes to doing a DMA transfer, I would assume that there is some special instruction, or a set of instructions involved in using it. This is just an assumption, and I haven't really programmed with any assembly language using DMA before, so I don't really know how to use it in GBA.
      But I think it would make sense if DMA transfer could be evoked using an instruction like "fetch nn bytes of data from memory address xxyyzzqq (and store them at aabbccdd ?)" at the start of DMA memory (and these nn bytes would eventually land there by the definition of what DMA transfer does). That would after all only require one memory access (= fetching this CPU instruction) rather than several for copying values one by one (= wouldn't really be much more efficient than loading values elsewhere in ram I think).
      __________________
      Pokémon Dark Energy
      Some ROM hacking related stuff
      Reply With Quote
      Reply

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account

      Sponsored Links
      Thread Tools

      Posting Rules
      You may not post new threads
      You may not post replies
      You may not post attachments
      You may not edit your posts

      BB code is On
      Smilies are On
      [IMG] code is On
      HTML code is Off

      Forum Jump


      All times are GMT -8. The time now is 9:17 AM.