[HELP/QUESTION] Recursive address increment in AA possible?

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
mlengka93
Noobzor
Noobzor
Posts: 9
Joined: Mon Nov 25, 2019 4:55 pm
Reputation: 0

[HELP/QUESTION] Recursive address increment in AA possible?

Post by mlengka93 »

So, here is my Starting script to get Base Pointer
Spoiler

Code: Select all

[ENABLE]
aobscan(memorystart,D0 FF BD 27 21 68 A0 00 03 00 A3 30 01 00 05 24)
label(memoryS)
registersymbol(memoryS)
memorystart:
memoryS:
[DISABLE]
unregistersymbol(memoryS)
Is it possible to add another script to edit multiple address (recursive) in AA? something like this

Code: Select all

newmem:
cmp [counter],#23
jle code
jmp return

code:
cmp [counter],#23
jg return
add [recursive],4 //add 4 each write
mov [memoryS+recursive],#99
add [counter],#1
jle newmem
jmp return

counter:
dd 1
return:
and is it possible to grab memoryS address from first script to other?

TheByteSize
Expert Cheater
Expert Cheater
Posts: 293
Joined: Sat Mar 04, 2017 7:28 am
Reputation: 232

Re: [HELP/QUESTION] Recursive address increment in AA possible?

Post by TheByteSize »

Yes, you can. When you register a Symbol, it become a Global variable that you can access from any other scripts as long as it's initialized aka registered. Here is example.

Code: Select all

label(initialize)
label(loop)
label(exit)

initialize:
	push eax
	push ebx
	xor eax,eax
	xor ebx,ebx
	mov eax, [memoryS]
	
loop:
	mov [eax+ebx*4],#99
	inc ebx
	cmp ebx,#23
	jl loop
	
exit:
	pop ebx
	pop eax
Last edited by TheByteSize on Mon Nov 29, 2021 7:07 pm, edited 4 times in total.

GreenHouse
Expert Cheater
Expert Cheater
Posts: 857
Joined: Fri Oct 12, 2018 10:25 pm
Reputation: 889

Re: [HELP/QUESTION] Recursive address increment in AA possible?

Post by GreenHouse »

You're better off by pushing registers for counters and all of that. Pointers are a bad idea and will make it more complicated to write.

Post Reply

Who is online

Users browsing this forum: No registered users