Results 1 to 10 of 39

Thread: Still Need ASM Help

Threaded View

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

    Default

    Try this.. /: bit tired.. running on 14 hours of sleep over 3 days so i might of missed something. Please send me an msn message or aim message when you can, I will forget to check back on this I'm guessing.
    ldr r0, Slot @r0 = 0x021D88FE
    ldrh r1, Mask @r1 =0x144E
    ldrh r2, Check @r2 = 0xFFF1
    mov r3, #0x1c
    add r3, r0,r3

    Loop:
    cmp r0, r3
    bge End
    ldrh r4, [r0]
    cmp r4, r2
    beq StoreCheck
    strh r1, [r3]
    b Loop

    StoreCheck:
    subs r3, #0x2
    bpl Loop

    End:
    bx lr


    Slot:
    .long 0x21D88FE

    Mask:
    .short 0x144E

    Check:
    .short 0xFFF1
    Last edited by Maniac; 06-01-2010 at 08:12 AM.

    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
  •