Results 1 to 10 of 17

Thread: Search and teleport (theory)

Hybrid View

  1. #1
    J.P. (Global Moderator) Maniac's Avatar
    Join Date
    Sep 2007
    Location
    Ohio, USA
    Posts
    2,083
    Blog Entries
    5

    Default

    ....remind me to work on this when you see me on msn.

    Say what you mean, mean what you say, and let your actions speak for you.


  2. #2
    J.P. (Global Moderator) Maniac's Avatar
    Join Date
    Sep 2007
    Location
    Ohio, USA
    Posts
    2,083
    Blog Entries
    5

    Default

    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.

    Say what you mean, mean what you say, and let your actions speak for you.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •