Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 45

Thread: My first attempts at ASM

  1. #11
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    I used the text to item source from RTWE, but Virus said it should work the same way (someone else was using it too)

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

    Default

    yeah the one in RTWE was written for it to work in THUMB, virus's TTI only works for ARM. Anyhow I will look over it.
    Last edited by Maniac; 10-15-2008 at 07:21 PM.

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


  3. #13
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    I took your advice and made it store/load a halfword. Now it edits my hairstyle/hair color and eyes, but it still won't edit my tan. Also it still doesn't do it correctly. Edit: I probably forgot something, but I changed the source to this
    Code:
    removed
    Last edited by dragonboy269; 04-28-2009 at 06:25 PM.

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

    Default

    Your load should be a loading a byte, the store shoulde be strh, or storing a halfword. oh, and have the loop execute 4 times.

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


  5. #15
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    I'll try that

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

    Default

    Alright, tell me how it works..

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


  7. #17
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    Now when I press the activator, it makes the sky look awesome!! (it turns purple and the clouds zoom around ) but it doesn't change my appearance.
    I know how to store/load stuff but the reference sheet doesn't say anything about loops (so I don't know if I did it right or not)

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

    Default

    Let me see the source?

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


  9. #19
    Member
    Join Date
    Aug 2008
    Location
    Arizona
    Posts
    1,073
    Blog Entries
    2

    Default

    Code:
    removed
    I know I probably shouldn't have put b and h for every single one, but I just wanted to see what happened
    Last edited by dragonboy269; 04-28-2009 at 06:25 PM.

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

    Default

    Try this...
    Code:
    ldr r1,=0x022AF136
    mov r5,#0x0
    mov r0,#0x10
    mov r2,#0xF
    loop:
    ldrb r3,[r1]
    add r1,#0x1
    cmp r3,#0x3A
    blt number
    add r3,#0x9
    number:
    and r3,r2
    lsl r3,r0
    add r5,r3
    sub r0,#0x4
    bpl loop
     
    ldr r2,=0x021D9018
    strh r5,[r2]
    bx lr

    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
  •