Lance32497
LanceKoijer of Pokemon_Addicts
- 792
- Posts
- 10
- Years
- Criscanto town-Ginoa Region xD
- Seen Aug 14, 2017
Hello guys, I want to ask this,
str stores the value of a certain register into a register
while add adds a byte in a certain register
so let's say r0 has 0x020370b8
ldr r0, =(0x020370B8)
ldr r1, =(0x0880EE4A)
ldrb r1, [r1]
ldrb r0, [r0]
strb r0, [r1]
so it means that by doing that, 0x020370B8 has 0x4A
while
ldr r0, =(0x020370B8)
ldrb r0, [r0]
add r0, r0, #0x5
so it means that by doing that, r0 is now 0x020370BD
correct me if I'm wrong
str stores the value of a certain register into a register
while add adds a byte in a certain register
so let's say r0 has 0x020370b8
ldr r0, =(0x020370B8)
ldr r1, =(0x0880EE4A)
ldrb r1, [r1]
ldrb r0, [r0]
strb r0, [r1]
so it means that by doing that, 0x020370B8 has 0x4A
while
ldr r0, =(0x020370B8)
ldrb r0, [r0]
add r0, r0, #0x5
so it means that by doing that, r0 is now 0x020370BD
correct me if I'm wrong