For those who are interested, so far I have this...
Code:
@convert to thumb
add r2,pc,#1
bx r2
.thumb
@[Text to Item] = r5
ldr r1, text
mov r5,#0x0
mov r0,#0xC
mov r2,#0xF
loop:
ldrb r3,[r1]
add r1,#1
cmp r3,#0x3A
blt number
add r3,#9
number:
and r3,r2
lsl r3,r0
add r5,r3
sub r0,#0x4
bpl loop
@[Item Address] = r2
ldr r2, Map
ldr r4, =0x10
lsl r4, #0x8
sub r4, #0x1
maploop:
ldrh r3, [r2]
cmp r3, r5
beq Move
notreplace:
add r2, #0x2 @add 2 to the map address, thus going to the next spot
sub r4, #0x1 @subtract 1 from r5, this is howmany times the loop repeats
bpl maploop
@[Calculations..]
Move:
ldr r3, Map
sub r2, r3
....do the rest later
.arm
Map:
.long 0x021E3124
text:
.long 0x022AF136
This was done in like... 3 min >_> Sooooo it may be sloppy. unno.