Announcement

Collapse
No announcement yet.

[NDS] DS Workshop

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

  • #16
    I like it ! I guess the only thing to fill in that space would be another possible pointer or maybe an asm version of the code or have a breakdown of what each line does in the code. Hard to say what to fill in there but if you do add the extra pointer feature you would post the normal pointer and then have the pointer in pointer show beside it.
    Spoiler Alert! Click to view...

    THE BAD GUY!!!!!!

    Comment


    • #17
      Hmm, I could make it output ASM, but how should I do it? I'm thinking of this (using the example in the current picture):

      Code:
      ldr r0,Pointer    //load the pointer address
      ldr r0,[r0,#0]   //load the value at the pointer (don't really need the #0, but i add it for aligning lol)
      cmp r0,#0x0     //check if we are somewhere that clears the value in the pointer
      beq Exit       //if we are, jump to "Exit" which would end the code
      
      ldrh r1,Value       //otherwise, load the value (in this case 0xFFFF)
      strh r1,[r0,#0x30] //and store it in the ValueAtPointer + Offset
      
      Exit: //our label
      bx lr //return/end code
      
      Pointer:
      .word 0x0214AFDC
      Value:
      .hword 0xFFFF
      That example would work with ARM and Thumb ASM, but it wouldn't do any good in Thumb if the offset is too big. I could also get rid of the literals, and replace with the code below, but sometimes writing the ASM that way lengthens the code.

      Code:
      ldr r0,=0x0214AFDC
      
      ... ... .. .. .
      ldrh r1,=0xFFFF
      Or I could just make it read what each line is doing even though that's pretty obvious.
      Last edited by Demonic722; 01-29-2012, 01:37:04 PM.
      I only bother with things that interest me.

      Comment


      • #18
        I was thinking like have the ASM be ported out as a code with your explanations per line like you have above, but it might get complicated so perhaps when you add the pointer in pointer feature have it output the extra pointer code there as well as the single pointer code.
        Spoiler Alert! Click to view...

        THE BAD GUY!!!!!!

        Comment


        • #19
          It could get a little messy, but all I would really need to do is add a check depending on how big the offset is and then output a more efficient way of making the ASM Routine based on that. I'll keep the 2-Tier Pointer request in mind. =P
          I only bother with things that interest me.

          Comment


          • #20
            4 years later for still waiting for 2 pointers! Maybe up to 3, 4 or more pointers, just likes Elixirdream make 8 pointers in Harry Potter games!
            Doakan untuk MH370 / Pray for M370

            Comment


            • #21
              This program in particular has been discontinued and was later merged into NDS Toolkit. I was rewriting NDS Toolkit's code for efficiency, but lost interest. I'll return to it at some point.

              Anyway, it's best to back-trace the assembly for stability if you need to go as far as 8 pointers for one code. Raing3 has a pointer tool that works for just about every console, provided you feed it the base address. It can go several tiers deep; however, I'm not sure how stable it is. You might want to check that out for now.
              I only bother with things that interest me.

              Comment

              Working...
              X