Results 1 to 10 of 69

Thread: I've started trying ASM finally

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

    For the fa one its easier just to do this...
    Code:
    ldr r0, text
    ldr r1, slot
    ldrh r3, word
    ldrh r5, done
    ldrh r4, item
    ldrh r2, [r0]
    cmp r2, r3
    bxne lr
    strh r5, [r0]
    strh r4, [r1]
    bx lr
    
    text:
    .long 0x22AF136 
    slot:
    .long 0x21D88FE
    word:
    .ascii "fa"
    done:
    .ascii "ok"
    item:
    .short 0x14FD
    Same goes for the other one, well sorta :\

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


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

    Default

    Quote Originally Posted by Maniac View Post
    For the fa one its easier just to do this...
    Code:
    ldr r0, text
    ldr r1, slot
    ldrh r3, word
    ldrh r5, done
    ldrh r4, item
    ldrh r2, [r0]
    cmp r2, r3
    bxne lr
    strh r5, [r0]
    strh r4, [r1]
    bx lr
    
    text:
    .long 0x22AF136 
    slot:
    .long 0x21D88FE
    word:
    .ascii "fa"
    done:
    .ascii "ok"
    item:
    .short 0x14FD
    Same goes for the other one, well sorta :\
    Well, it doesn't really shorten the code at all but it shortens the source. But thanks, that really is easier to do, i'll keep that in mind XD

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

    Default

    While gh was down, I got bored and made 2 new codes. They're practically the same codes though, but whatever. I based these off of someone else's codes, except they didn't use assembly and they used button activators, while I use assembly an text activators.
    Code:
    removed
    I could have made them into a single code, but it'd be huge.
    Last edited by dragonboy269; 04-28-2009 at 06:19 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
  •