ASM Question about LDR

Discussion in '3DS - Homebrew Development and Emulators' started by ely42, Aug 30, 2016.

  1. ely42
    OP

    ely42 Member

    Newcomer
    19
    7
    May 28, 2016
    France
    Hello guys, I was looking at the disassembly of NTR CFW and I want know if in the expresion:
    Code:
    STR    R1, [R7,#(install_state - 0x10A924)]
    the minus ("-") is for a substraction.

    Thank in advance :)
     
  2. ksanislo

    ksanislo GBAtemp Fan

    Member
    378
    218
    Feb 23, 2016
    United States
    Seattle, WA
    ely42 likes this.
  3. ely42
    OP

    ely42 Member

    Newcomer
    19
    7
    May 28, 2016
    France
    Thanks man :) So in this case R1 = R7 + (install_state -0x10A924) right ?
     
  4. ksanislo

    ksanislo GBAtemp Fan

    Member
    378
    218
    Feb 23, 2016
    United States
    Seattle, WA
    I read it more as "save the value of R1 to memory location at R7 + (install_state - 0x10A924)", but I think that might be what you're already saying, just worded differently
     
    ely42 likes this.
  5. ely42
    OP

    ely42 Member

    Newcomer
    19
    7
    May 28, 2016
    France
    Oh my bad, you're right :) It write from R1 not load to R1. I'm still reading the disassembly and the line I was reading contained a LDR instruction, it confused me :) A big thank to you :)