| |
|
|
- Page 1 - |
|
Normann Strübli | Hi,
Perhaps have I it Yes somewhere überlesen, but are Procedures inside the XPIA-Codes allows?
goes the? and how can then The upper procedure something on The aufrufende transfer if ret not allows is?
Greeting Normann |
|
|
| |
|
|
|
| |
|
- Page 1 - |
|
Normann Strübli | but in the Doku of Frank standing indeed:
[quote:e9d72de353]Parameters x&, area#, addr(string$)[/quote:e9d72de353]
|
|
|
| |
|
|
|
Michael Wodrich | then change please times whom names the procedure. the wished I first with write, having But verworfen. Evtl. depends it still with the manner the Namensgebung together (here Specifically with the word DWORD). |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 11/09/05 ▲ |
|
|
|
|
Normann Strübli | No, this is it unfortunately neither. but nevertheless thanks for your speedy Help!
Greeting Normann |
|
|
| |
|
|
| |
|
- Page 2 - |
|
|
Michael Dell | So I würd on eax as counter dispense and ne Variable bring into action, about so:
{$Q}
Declare Istring$,Pb&
Asmstart String2dword
Parameters addr(istring$)
Return pb&
LOCAL Result :DWORD
LOCAL Zaehler :DWORD
mov Result,0
mov edi,para1
invoke lstrlen,para1
mov Zaehler, eax
.while Zaehler!=0
xor edx,edx
mov dl,byte ptr [edi]
sub dl,"0"
mov esi,eax
dec esi
push eax
mov eax,edx
push ebx
mov ebx,10
.while esi > 0
mul ebx
dec esi
.endw
pop ebx
add Result,eax
pop eax
inc edi
sub Zaehler,1
.endw
mov eax,Result
Asmend
at least runs so the Assemblieren and left fine. I see, Scall standing zummindest in the actually Masm Version in the Macro.asm, The in the Basic.inc eingefügt can never damage.
Nachtrag: Oh, Have strain Pinned the your original code too Funzen Müste at least if one {$Q} or so at the beginning stand has! |
|
|
| Salu Michael...
Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! | 11/10/05 ▲ |
|
|
|
|
| {$q} means only the XPSE to verrichteter work itself close should - without on Tastatureingaben To Waiting.
an Variable instead of EAX - hm - Michael has naturally right the Eax (means ax) not strain for count bedacht was, but I personally would from Performancegründen nevertheless (particularly nowadys) rather with eax count instead of with of/ one Variable. be angemerkt - with Your code remaining it well unmerklich whether with tab or Variable counted becomes.
If the AsmBlock not ordnungsgemäß kompilieren/left can - Follow Michaels hint only variables instead of too functions by Parameters To transfer. i'm me namely not sure in which XPSE-Version I there the addr with Parameters unbehandelt let.
salvo. |
|
|
| |
|
|
|
Michael Wodrich | Tja, Perhaps should we accustom The Versionsnummern all beteiligten programs parat to have, so one The Error understand can. though - in a Rechnerumgebung completely without Programmiertools nützt too the nothing.
to Fehlerbehebung now: any Tools on the latest stood bring (XPSE, XPIA, MASM) and anew testing. then erübrigt itself Perhaps even one paraphrase the Codes.
I faith, The String2dw standing in two mutants too in the MASM-Lib. look you the two at times. I rate times the names: s2dw, st2dw, sToDW, StrToDW If no hits thereby is: in the Masm-Help are The Beschreibungen.
Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 11/10/05 ▲ |
|
|
|
|
Frank Abbing | Hi,
So I Have no Problems, whom Code übersetzten. the lying here sure only on the verwendeten XPSE-Version. your Assemblercode anyway is completely aale. EAX as counter einzusetzen is too utterly aale, even if ECX gebräuchlicher is. but this is alike. XPIAs Parameters verkraftet thoroughly too functions. Intern is it so, the Parameters hereafter transformed becomes in Profans External. everything, what External on Parameters verkraftet, creates means too Parameters. Why XPSE in neueren versions really interfere wants in XPIAs Parameters, knows so did i not very. usually ought to the commands of XPSE left lying let go, How everything into Assemblerfunktionen. I faith, the depends with future extensions together, Perhaps declared iF the still accurate. on XPIA anyway liegts not. |
|
|
| |
|
|
|
Normann Strübli | now not hit!
it lying on the XPIA, was but my guilt
I have after a kompletten Neuinstallation the Profan-directory of my Sicherung on The disk zurückkopiert and from the internet The actually versions (masm32,XPIA,XPSE) Downloaded and installs.
has komischerweise everything functions too The Examples The at XPIA thereby were. (at least almost! any How I now Pinned have)
in short, in the Profan-directory befand itself another old Version the XPIA.EXE, and the has the XPSE naturally the actually Version, which now in the XPIA directory befand, vorgezogen. would have been so did i sooner on it come can, but in the believe everything on the newest stood to have vergleicht one no Versionsnummern.
solid Pfadangaben in the XPSE hätten here certainly remedy created, moreover has iF so then a gewisse Mitschuld
Greeting Normann |
|
|
| |
|
|
|
| guilt Have anyhow I - but solid Pfadangaben? |
|
|
| |
|
|
|
Normann Strübli | @iF: No, this is already integrally OK, as it is.
short question again, the following standing Yes in the Help the XPIA: [quote:8fe3def3d0] Own or others Bibliotheken (Libs) can very simply moreover taken go. already installed are kernel32, user32, masm32, comctl32, shell32, gdi32, ole32, oleaut32, comdlg32, fpu and winmm. further can yourself into File include/base.inc integrate go.[/quote:8fe3def3d0] OK, Have I me virtual missing me yet The windows.inc. means How beschieben[quote:8fe3def3d0]include D:masm32includewindows.inc[/quote:8fe3def3d0] into base.inc eingefügt.
now I will but in the Consolenfenster überhäuft with Fehlermeldungen à la: [quote:8fe3def3d0]D:masm32includewindows.inc(7934) : error A2163 non-benign structure redifinition: incorrect initializers : NMREBARCHILDSIZE[/quote:8fe3def3d0] etc.
What is because there nu again schief run? |
|
|
| |
|
|
|
Frank Abbing | XPIA bind The windows.inc already of itself from moreover. is Yes no Lib, only a Inc. twice gemoppelt holds hold NOT always rather. sometimes erzeugts too Error |
|
|
| |
|
|
|
Frank Abbing | [quote:295287844d]XPIAs Parameters verkraftet thoroughly too functions. [/quote:295287844d] man, mouth again To fully taken. always works the still unfortunately not, but I have already nachgebessert. in the next Version funkioniert (almost) everything |
|
|
| |
|
|