Page 1 of 2 12 LastLast
Results 1 to 10 of 69

Thread: I've started trying ASM finally

Hybrid View

  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

    I found out another reason why my codes didn't work 0.o
    I wasn't "ending" the code
    I was forgetting to put bx r14 and stuff like that
    Now everything I try works perfectly (although I haven't tried adding/subtracting/etc yet)

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

    Default

    Quote Originally Posted by dragonboy269 View Post
    I found out another reason why my codes didn't work 0.o
    I wasn't "ending" the code
    I was forgetting to put bx r14 and stuff like that
    Now everything I try works perfectly (although I haven't tried adding/subtracting/etc yet)
    bx lr yeah that would make a huge difference... I was just assuming you put it in there :\

    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

    I made another code (with help from Maniac)
    It's a useful code too
    Code:
    removed
    it increases your money the longer you hold down L+R
    Last edited by dragonboy269; 04-28-2009 at 06:16 PM.

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

    Default

    Well, I tried another project, this time involving adding/subtracting routines. I'm having trouble again (I'm close though)
    I tried making a code that does this : When you press L+R, it deposits your bells into your bank (AND gets rid of the ones in your wallet that you deposited)
    I got it to deposit, but I can't seem to make it get rid of the ones I deposited
    Here is one of my sources: (this one doesn't work at all but I have a feeling it's close)
    Code:
    removed
    I'm almost certain I know what I'm doing wrong, but I'm tired so I'm going to bed. Hopefully if someone doesn't reply, I'll figure it out myself tomorrow.
    Last edited by dragonboy269; 04-28-2009 at 06:16 PM.

Posting Permissions

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