View Single Post
  #240    
Old April 11th, 2012, 10:46 AM
sonic1's Avatar
sonic1
ASM is my life now...
 
Join Date: May 2008
Location: Portugal
Age: 19
Gender: Male
Nature: Timid
Ok, sorry, my bad, the script doesn't work, and i don't know why. In the past months i only worked with ASM, so i'm a but rusty with scripts. Here's a routine.
Try callingasm this routine:
Code:
.align 2
.thumb

main:
	push {r0-r4, lr}
	ldr r0, =0x3E8 			@flag base
	ldr r1, =0x0			@counter
loop:
	cmp r1, #0xBE
	bhi end
	add r1, r1, #0x1
	bl clearflag
	add r0, r0, #0x0		@next flag
	b loop
end:
	pop {r0-r4, pc}
	
clearflag:
	ldr r4, =0x0806E6A8+1          @clearflag routine offset
	bx r4
Hope this helps.
__________________

My Site (UNDER CONSTRUCTION):

(mage by Xryo)

PORTUGUESE USER
Sou o Dark rayquaza da antiga myutsu.net


My Laptop SPECS:


Credits to Eagledelt for the wonderfull sign :D


Last edited by sonic1; April 11th, 2012 at 10:51 AM.
Reply With Quote