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

Ad Content
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old May 7th, 2018 (8:40 PM). Edited May 8th, 2018 by Koople.
Koople's Avatar
Koople Koople is offline
    Join Date: Nov 2016
    Nature: Relaxed
    Posts: 81
    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.


    EDIT: just kidding, my process was correct I just had other bugs in my code.
    Reply With Quote
      #2   Link to this post, but load the entire thread.  
    Old May 8th, 2018 (8:33 AM). Edited May 8th, 2018 by miksy91.
    miksy91's Avatar
    miksy91 miksy91 is offline
    Dark Energy is back in action! ;)
      Join Date: Oct 2008
      Location: Finland
      Gender: Male
      Posts: 1,463

      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

      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
      Ad Content
      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 4:41 PM.