Thread: Development: Taking Pokémon away
View Single Post
Old January 22nd, 2010 (4:38 AM).
Darthatron's Avatar
Darthatron Darthatron is offline
Silver Tier
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 24
Gender: Male
Nature: Modest
Posts: 1,152
Looks good, except for some things that would seem to backfire. If you wouldn't mind telling me if my thoughts are wrong or not, that would be great.

	cmp r4, #0x2
	blt return
	ldr r6, .VAR
	strh r5, [r6, #0x10]
	pop {r0-r7, pc}
r4 contains the the Pokemon Amount and if it's less than 2 then it quits, but when quitting wouldn't it write 0x0 to the address 0x00000010 in the RAM? Surely it's not meant to do that.

EDIT: Also, isn't it supposed to return the value to 0x800D, not 0x8004? Or did I miss something?
あなた は しきしゃ です
わたし は ばか です
Reply With Quote