English
Source / code snippets

reaches described To One Verify memory watts

 

Frank
Abbing
Assembler basierender Profancode, prepares with XPIA.
checks, where in a Speicherbereich or String The data terminate. The function checks WinXP? of hinten to in front and reports The place, on the the first byte found watts, that not NULL is. operates very quick, there Maschinencode carryed out becomes.
DECLARE XPIA#,XPIA$,XPIA&,BEREICH#,DIMBYTES&,Z&
DIM XPIA#,3076
CLEAR XPIA#
LONG XPIA#,0=9460301,3,4,65535,184,0,64,0,0,0,0,0,0,0,0,176,247078670,-855002112,1275181089,1750344141,1881174889,1919381362,1663069537,1869508193,1700929652,1853190688,544106784,542330692,1701080941,168627502,36,0,-642185571
LONG XPIA#,132=-1965594663,-1965594663,-1965594663,-1966782683,-1965594664,-1966835625,-1965594660,1751345490,-1965594663,0,0,17744,262476,1125863750,0,0,554565856,201654539,512,1536,0,4096,4096,8192,268435456,4096,512,4,0,4
LONG XPIA#,252=0,20480,1024,0,2,1048576,4096,1048576,4096,0,16,8224,98,8192,20,0,0,0,0,0,0,16384,48,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,0,0,0,0,0,0,2019914798,116,202,4096,512,1024,0,0,0,-536870880,1633972782,24948,130,8192,512,1536
LONG XPIA#,488=0,0,0,1073741888,1952539694,97,60,12288,512,2048,0,0,0,-1073741760,1818587694,25455,70,16384,512,2560,0,0,0,1107296320,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
LONG XPIA#,768=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1192457387,1,836297,-1559738997,268447744,-1559476853,268447748,-1559214709,268447752
LONG XPIA#,1060=-1558952565,268447756,-1558690421,268447760,-1558428277,268447764,-1558166133,268447768,-1557903989,268447772,-1557641845,268447776,-1557379701,268447780,-1557117557,268447784,-1556855413,268447788,-1556593269
LONG XPIA#,1136=268447792,-1556331125,268447796,-1556068981,268447800,-326412861,-32792,1936383,-1961885648,69010387,-1206910928,0,805584259,1979715584,59394845,108331068,225761851,489419755,268447744,-339506365,47109,-1034092544
LONG XPIA#,1224=8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1919251317,1680749107,27756,0,1125863750,0
LONG XPIA#,1580=8274,1,1,1,8264,8268,8272,4229,8306,1113522176,1768256101,1735616611,1936027506,1952408947,1702130533,1852137326,1818504808,1766195308,1699898478,1699572833,2053722989,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
LONG XPIA#,1744=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
LONG XPIA#,2164=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4096,48,806891536
LONG XPIA#,2572=807940128,808988720,810037312,811085904,812134496,813183088,814690432,815935639,12472,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
LONG XPIA#,2856=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
XPIA$=$TEMPDIR+"/_Bereichsgroesse_testen_enh.dll"
FILEMODE 1
ASSIGN #1,XPIA$
OPENRW #1
BLOCKWRITE #1,XPIA#,0,3072
CLOSERW #1
DISPOSE XPIA#
CLS
DIM BEREICH#,100000
CLEAR BEREICH#
DIMBYTES&=SIZEOF(BEREICH#)
PRINT "Tatsächliche Size the Bereichs: "+STR$(DIMBYTES&)
STRING BEREICH#,0="Guten Tag"
STRING BEREICH#,400="Ich teste time was"
Z&=EXTERNAL(XPIA$,"FindRealMemSize",BEREICH#,DIMBYTES&)
PRINT "Jegliche data in the area terminate with Offset: "+STR$(Z&)
WAITINPUT
END
 
09/05/05  
 



Hey - the Fairness halber - since with the ASM!
 
09/05/05  
 




Frank
Abbing
in this Forum ought to the Profancode still wealthy.
whom Assemblercode Gibts as example to that XPIA (in Kürze).
 
09/05/05  
 



be I now one Spühlverdärber?
salvo, iF.

PS: *duck*
 
09/05/05  
 




Frank
Abbing
Hi,

ok, you have it so pseudo...
adopted, para2 is zero - can Yes occur, because the area could indeed one String or otherwise some memory his. then crashes your code gnadenlos ex . here missing a request.
Addr(M#) is naturally too balderdash. M# reicht completely.
and world writes not with ä .

OK, You Nervensäge. here's my code:

P.s. If even goes, mach The Additionen not in the Loop [eax+ebx].
 
09/05/05  
 



Nungut - adopted I building The NUL-request with mere - then is my code nevertheless yet 4 Lines kürzer.

salvo, iF. *duck*

Nachtrag:

Huch - Have I now zugegeben I had whom Kürzeren?
 
09/05/05  
 




Frank
Abbing
Hi,

for but slower, because of the Additionen... ;D

[quote:3e6eb8862d]Huch - Have I now zugegeben I had whom Kürzeren? [/quote:3e6eb8862d]
comfort you. allegedly can with the the right engineering again kompensiert go...
 
09/05/05  
 



you mean a only addition also only 1x carryed out becomes? well were! The schreib I still saponaceous circa!

Ha - you have it Yes so pseudo!
 
09/05/05  
 




Frank
Abbing
[eax+ebx] becomes each Durchlauf carryed out...
 
09/05/05  
 



well true *schäm*

I gug rather again into Franks-ASM-manuals...

salvo, iF.
 
09/05/05  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

19.029 Views

Untitledvor 0 min.
Uwe Lang12/27/15
Michael Borowiak12/22/12
Profanet11/10/11

Themeninformationen

this Topic has 2 subscriber:

iF (5x)
Frank Abbing (5x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie