Kodewerx https://www.kodewerx.org/forum/ |
|
Programming Question https://www.kodewerx.org/forum/viewtopic.php?f=5&t=6364 |
Page 1 of 1 |
Author: | Abystus [ Wed Nov 26, 2008 8:17 pm ] |
Post subject: | Programming Question |
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 |
Author: | HyperHacker [ Thu Nov 27, 2008 12:01 am ] |
Post subject: | Re: Programming Question |
Reading from what? On what platform? To do what? More information = more potential help. |
Author: | Abystus [ Sat Nov 29, 2008 3:48 pm ] |
Post subject: | Re: Programming Question |
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 |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |