-
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.
-
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!! :D
-
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
-
What is this code supposed to do?
-
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
-
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
-
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)
-
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.
-
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.
-
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.