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

    Perhaps you should have it store the item into the first open slot. Even though I've already done this for some unreleased code it should be good practice.

    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
    Perhaps you should have it store the item into the first open slot. Even though I've already done this for some unreleased code it should be good practice.
    I'll try that next I'll look it over

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

    Default

    Alright, good luck and as always if you have questions feel free to ask.

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


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

    Default

    Nevermind, I think I understand how. I'll try it now (thanks to your brick seed removal code XD)
    Last edited by dragonboy269; 01-18-2009 at 03:47 PM.

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

    Default

    Well, loops are confusing but once I learn these I'll be able to make more complicated codes. Anyway, he is the source that I have. It freezes DX
    Any help?
    Code:
    removed
    Last edited by dragonboy269; 04-28-2009 at 06:18 PM.

  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, slot
    add r2, r1, #0x28
    ldrh r0, pitfall
    ldrh r3, check
    
    Loop:
    cmp r1, r2
    bge End <----
    ldrh r4, [r1]
    cmp r4, r3
    beq Store
    add r1, r1, #0x2
    b loop
    
    Store:
    strh r0, [r1]
    End:
    bx lr
    
    slot:
    .long 0x21D88FE
    check:
    .short 0xFFF1
    pitfall:
    .short 0x1566
    May help.

    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, slot
    add r2, r1, #0x28
    ldrh r0, pitfall
    ldrh r3, check
    
    Loop:
    cmp r1, r2
    bge End <----
    ldrh r4, [r1]
    cmp r4, r3
    beq Store
    add r1, r1, #0x2
    b loop
    
    Store:
    strh r0, [r1]
    End:
    bx lr
    
    slot:
    .long 0x21D88FE
    check:
    .short 0xFFF1
    pitfall:
    .short 0x1566
    May help.
    It didn't help, it still freezes 0_o

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

    Default

    I never said it would fix it >__>

    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
  •