Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Sat Apr 27, 2024 10:09 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Programming Question
PostPosted: Wed Nov 26, 2008 8:17 pm 
Offline
Kommunist
Kommunist
User avatar

Joined: Thu Jun 26, 2008 12:29 am
Posts: 52
What would be the best way to read a range of address values (memory) that would be quicker than reading each value of the range in a loop? I have found this method to be slow and tedious (on larger ranges), is there a quicker solution? I am also needing a quick way of populating an array of these addresses/values (quickly) for a comparison type search. It doesn't matter what language you post the answer in, the logic should be relevant. Any help is appreciated.

- Abystus


Top
 Profile  
Reply with quote  
 Post subject: Re: Programming Question
PostPosted: Thu Nov 27, 2008 12:01 am 
Offline
Komrade
Komrade
User avatar

Joined: Tue Mar 27, 2007 6:23 pm
Posts: 1354
Location: Mario Raceway, 1509.831, 217.198, -564.429
Title: Mario Kart 64 Hacker
Reading from what? On what platform? To do what? More information = more potential help.

_________________
Image 143
HyperNova Software is now live (but may take a few tries to load) currently down; check out my PSP/DS/Game Boy/Windows/Linux homebrew, ROM hacks, and Gameshark codes!


Top
 Profile  
Reply with quote  
 Post subject: Re: Programming Question
PostPosted: Sat Nov 29, 2008 3:48 pm 
Offline
Kommunist
Kommunist
User avatar

Joined: Thu Jun 26, 2008 12:29 am
Posts: 52
Well I'm needing something more geared towards PC Games/Emulators. A more optimized method of reading/writing memory for memory ranges vs single memory read/write. Basically something faster than reading a range of memory in a loop with a single execution per interval of the loop. I'm sorry wasn't more in detail, however no matter what type of memory your reading/writing on any platform it should be similar if your comparing a loop method to an optimized method. As before use any language your comfortable in to relay the answer as the logic stays the same, its just the syntax that changes.

EX: Needing something faster for handling a range than what is below.

// startExpression = start of range (memory address)
// testExpression = end of range (memory address)
// NewValue = A value different to previous or locked value

for(startExpression; testExpression; countExpression)
{
ReadMemoryValue(startExpression);
}

for(startExpression; testExpression; countExpression)
{
WriteMemoryValue(startExpression, NewValue);
}


If you need an example further than the one provided compare what I'm needing to say Cheat Engine, or Renegade 64 in comparison of speed terms.

-Abystus


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group