| |
|
|
| question: How sees then my ASM-routine from, The I to Time with Profan2ccp einbinde , if I tappt im dunkeln as Inline benefit would like for Borland 5.5 ?
so call I these on : z&=Call(xpia_getprocaddressm(xpia_hmodule&,rgb_farbe),b#,c#,groesse&)
If 0
AsmStart rgb_farbe
Parameters b#,c#,groesse&
LOCAL r :BYTE
LOCAL g :BYTE
LOCAL b :BYTE
LOCAL gr :DWORD
LOCAL bb :DWORD
LOCAL cc :DWORD
mov eax,para3
mov gr,eax
mov eax,para2
mov cc,eax
mov eax,para1
mov bb,eax
mov ecx,0
.while ecx<=gr
mov ebx,para2
mov al,[ebx+ecx]
.if al>5
jmp moreover
.endif
mov ebx,para1
mov al,[ebx+ecx]
mov r,al
mov al,[ebx+ecx+1]
mov g,al
mov al,[ebx+ecx+2]
mov b,al
mov al,b
.if al>250
mov eax,255
.break
.endif
mov al,g
.if al>250
mov eax,255
.break
.endif
mov al,r
.if al>250
mov eax,255
.break
.endif
moreover:
add ecx,4
.endw
AsmEnd(z&)
endif
Thank you.
mfg |
|
|
| |
|
|
|
Sebastian König | Hello Peter,
I have The question time in a own Posting moved.
Peter Bierbachh
question: How sees then my ASM-routine from, The I to Time with Profan2ccp einbinde , if I tappt im dunkeln as Inline benefit would like for Borland 5.5 ?
so call I these on : z&=Call(xpia_getprocaddressm(xpia_hmodule&,rgb_farbe),b#,c#,groesse&) (...)
The welt would in principle:
though faith I hardly, that You whom code so simply complete take can, because Inline-Asm in C++ is in the rule for short segments, The directly on the place in the code, on the tappt im dunkeln stand, eingebunden go, virtual. the define of functions, The You then of another place with Call() Call can, goes quite sure not. without it now tested to have suspect so did i, that You do not The filled amount of Makros etc. available having become.
Fazit: You can time with the supra beschriebenen template experiment, but for more ASM-Codes is XPIA quite certainly the bequemere alternative.
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 04/08/09 ▲ |
|
|
|
|
| the have I me almost virtual. XPIA remaining The Solution for longer Call-functions.
mfg |
|
|
| |
|
|