Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 56

Thread: ASM To be or not to be?

  1. #31

    Default

    Is this for version 1.1? I used DragonBoy's Search Code and found these for 1.0:

    Offline Mail Present Attachment Modifier Addresses [1.0]:

    Code:
    Slot 01: 121D8014 0000XXXX
    Slot 02: 121D8108 0000XXXX
    Slot 03: 121D81FC 0000XXXX
    Slot 04: 121D82F0 0000XXXX
    Slot 05: 121D83E4 0000XXXX
    Slot 06: 121D84D8 0000XXXX
    Slot 07: 121D85CC 0000XXXX
    Slot 08: 121D86C0 0000XXXX
    Slot 09: 121D87B4 0000XXXX
    Slot 10: 121D88A8 0000XXXX
    Online (Wi-Fi) Mail Present Attachment Modifier Addresses [1.0]:

    Code:
    Slot 01: 121D15C8 0000XXXX
    Slot 02: 121D16BC 0000XXXX
    Slot 03: 121D17B0 0000XXXX
    Slot 04: 121D18A4 0000XXXX
    Slot 05: 121D1998 0000XXXX
    Slot 06: 121D1A8C 0000XXXX
    Slot 07: 121D1B80 0000XXXX
    Slot 08: 121D1C74 0000XXXX
    Slot 09: 121D1D68 0000XXXX
    Slot 10: 121D1E5C 0000XXXX
    I hope this helps.
    3DS Friend Code: 4699-6293-3106

  2. #32

    Default

    Sorry I dropped out for a while. I've been busy with school.
    I guess I'll compile the code and test it out!! Thank you Maniac!!

  3. #33

    Default

    Hmmm.... I must've done something wrong... the code compiled but it doesn't work...
    Since I entered it manually I am going to check and make sure I entered it correctly... and I'll then rewrite the asm if I can.

    (Sorry for the double post...)


    Edit*

    I tried to redo the code and it still doesn't work... I tried to make it into a more readable format though.. I changed Limit, and a few other things...

    ldr r1, Mail @first mail address offline
    ldr r2, Dresser @First dresser slot address o
    ldrb r4, D @Dresser offset
    ldrb r5, M @Mail offset
    ldr r8, Limit @The last dresser slot I want to use... should be the tenth one.. used to terminate the code...

    Fred:
    strh r1, [r2] @Does this store to the Mail address or just the reg?
    @It is supposed to store the value from the address in r2,dresser, into the value at the address in r1..
    @Does it just overwrite r1? And not store the value in the address at r2? hmmm...
    add r1, r1, r5 @I am storing r1 + M in r1 to update address... Correctly?
    add r2, r2, r4
    cmp r2, r8 @Checks to current dresser address to know when to terminate the code...
    ble Fred
    bx lr


    Limit:
    .long 0x021ec212 @0-12 is ten right? (Well 20/2 in dec..)
    Dresser:
    .long 0x021ec200
    Mail:
    .long 0x021d8014
    D:
    .byte 0x02
    M:
    .byte 0xf4
    Last edited by Drew956; 07-24-2010 at 02:05 AM.

  4. #34

    Default

    What is this code supposed to do?
    3DS Friend Code: 4699-6293-3106

  5. #35

    Default

    I looked a page back and is the code supposed to store the first ten items of your drawers to mail slots? If so, should it look like this:

    Code:
    @BranchToThumb
    add r2,pc,#0x1
    bx r2
    .thumb
     
    ldr r5,Mail       ;@r5 holds mail
    ldr r3,Drawer     ;@r3 holds drawer
    mov r1,#0xC       ;@C in hexadecimal=12 in decimal  (0x21EC200+0xC should give yu tenth slot)
    ldrh r0,=0x894    ;@Lol i think...[0x021D8014+0x894=-0x21D88A8 (last mail slot)
     
    Loop:
    ldrh r2,[r3,r1]   ;@load items in last slot of drawer
    sub r1,r1,#0x2    ;@load the item in all slots
    strh r2,[r5,r0]   ;@store that item in last slot of mail
    sub r0,r0,#0xF4   ;@subtract the difference
    bpl Loop              
    bx lr                    
     
    .arm
    Mail:
    .long 0x21D8014
    Drawer:
    .long 0x21EC200
    Last edited by Demonic722; 07-24-2010 at 01:51 PM.
    3DS Friend Code: 4699-6293-3106

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

    Default

    Are you trying to copy the presents in your mail to your dresser? or the other way around?
    A lot of what you're trying to do is correct, but I don't really know what code you're trying to make XD
    Where did you get #0xF4 for the mail offset?

    and....
    Code:
    strh r1, [r2] @Does this store to the Mail address or just the reg?
    @It is supposed to store the value from the address in r2,dresser, into the value at the address in r1..
    You have it switched around :P that stores the value held in r1 into the address at r2
    plus you need to load the 16 bit value in r1 into a register first
    Sorry, I dunno how to word it in a way that sounds less confusing
    Always willing to help with anything, code-related or not. :]

  7. #37

    Default

    I think he's trying to store the first ten items of the drawer into the mailslots and #0xF4 is the difference
    between mail slots lol. I tried making a code with mailslots but never finished because i got bored with it...lol but
    I did find out that

    Code:
    0x21D8014+0x894=0x21D88A8 (slot ten of mail)
    3DS Friend Code: 4699-6293-3106

  8. #38

    Default

    With demonics help I got this...
    It works but I need to figure out how to use the online addresses too! Lol.

    ldr r1, Mail
    ldr r2, Dresser
    ldrb r4, D
    ldrb r5, M
    ldr r8, Limit

    Fred:
    ldrh r6, [r2]
    strh r6, [r1]
    add r1, r1, r5
    add r2, r2, r4
    cmp r2, r8
    ble Fred
    bx lr


    Limit:
    .long 0x021ec212
    Dresser:
    .long 0x021ec200
    Mail:
    .long 0x021d8014
    D:
    .byte 0x02
    M:
    .byte 0xf4

    EDIT: M mustv'e got chopped off!!
    Added it.
    Last edited by Drew956; 07-24-2010 at 01:40 PM. Reason: Forgot M!!

  9. #39

    Default

    You'd need the online dresser address if you have (because i dont) and you never defined the literal "M" lol..
    I thought using r6 causes a "culprit" in AC:WW, but if it works good job.
    3DS Friend Code: 4699-6293-3106

  10. #40

    Default

    Well... I couldn't think of any addresses I hadn't already used...
    But yeah, I tested in in my house and it works without any problems.

Posting Permissions

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