Page 1 of 7 123 ... LastLast
Results 1 to 10 of 69

Thread: I've started trying ASM finally

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

    Default I've started trying ASM finally

    I started trying to make my own codes without using snippets from other people's codes. I know I'm way behind in this, but I wanna learn this first before I try making codes for AC:CF (which will be much later)
    Anyway, I started with the simplest code I could possibly think of. Yup, a simple slot modifier in ASM. XD but it doesn't work. I want to place gold roses in my first inventory slot. Here is what I did:
    Code:
    removed
    It just gives me red tulips, which isn't what I want it to do XD.
    Last edited by dragonboy269; 04-28-2009 at 06:14 PM.

  2. #2

    Default

    Try this:

    Code:
    ldr r1, Slot1
    ldrh r2, Rose
    strh r2, [r1]
    
    Slot1:
    .long 0x21D88FE
    Rose:
    .short 0x001C

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

    Default

    Quote Originally Posted by Virus View Post
    Try this:

    Code:
    ldr r1, Slot1
    ldrh r2, Rose
    strh r2, [r1]
    
    Slot1:
    .long 0x21D88FE
    Rose:
    .short 0x001C
    Oh I forgot the halfbyte thing. That makes sense XD It works now, thanks!
    Now I'll try a harder code

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

    Default

    Now another question.
    How do you make it execute more than one thing at once? Like, I want it to make me have 99k in my 1st inventory slot both offline and online. I know there's an easier way but this is just an example. Here's what I did
    Code:
    removed
    When I try that, it just freezes after the action replay screen.
    Last edited by dragonboy269; 04-28-2009 at 06:14 PM.

  5. #5

    Default

    presumably the online slot is in use and your slamming gold roses at the address?

    Remember to always click the thanks button of those who help you! It makes them feel wanted:

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

    Default

    Code:
    ldr r1, Slot1 
    ldr r3, OnlineSlot1
    ldrh r2, Money 
    strh r2, [r1]
    strh r2, [r3]
    
    Slot1:
    .long 0x21D88FE
    Money:
    .short 0x14FD
    OnlineSlot1:
    .long 0x21D1EB2
    It would be that ^^ btw the OnlineSlot is a pointer. IF I remember correctly.
    Edit: Actually he does some adding routine >__> so I dont suggest constantly writing to the online slot, without the adding routine in it.
    Last edited by Maniac; 01-05-2009 at 05:48 PM.

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


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

    Default

    Quote Originally Posted by Maniac View Post
    Code:
    ldr r1, Slot1 
    ldr r3, OnlineSlot1
    ldrh r2, Money 
    strh r2, [r1]
    strh r2, [r3]
    
    Slot1:
    .long 0x21D88FE
    Money:
    .short 0x14FD
    OnlineSlot1:
    .long 0x21D1EB2
    It would be that ^^ btw the OnlineSlot is a pointer. IF I remember correctly.
    Edit: Actually he does some adding routine >__> so I dont suggest constantly writing to the online slot, without the adding routine in it.
    No, I found the problem. I never knew this, but the order in which you define the words matters. Like, this works:
    Code:
    removed
    but this doesn't work
    Code:
    removed
    Last edited by dragonboy269; 04-28-2009 at 06:15 PM.

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

    Default

    You mean the literals? (Things at the bottom) it really shouldn't matter.

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


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

    Default

    Quote Originally Posted by Maniac View Post
    You mean the literals? (Things at the bottom) it really shouldn't matter.
    I thought it shouldn't matter either, but it does (because when you compile it, the code looks different)
    For example, the first code above would be
    Code:
    removed
    and it works. The second code would be
    Code:
    removed
    Notice how the "14FD" moved. That code doesn't work.
    Last edited by dragonboy269; 04-28-2009 at 06:16 PM.

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

    Default

    Well yeah, when you move the lines they are going to move in the code. if you move slot2: .long 0x21D8900 to be above slot1 its going to move..

    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
  •