English
Native functions

LongAdd

 

Nico
Madysa
an Ersatzfunktion for Long(mem&,off&) = Long(mem&,off&)+val&
CompileMarkSeparation
nproc LongAdd

    parameters mem&,off&,val&
    mov eax,mem&
    add eax,off&
    mov ebx,[eax]
    add ebx,val&
    mov [eax],ebx

e

EDIT: supra of iF optimierte Version. under my suggestion:
CompileMarkSeparation
nproc LongAdd

    parameters mem&,off&,val&
    mov ecx,esp'Stack secure
    mov ebx,mem&'address find
    add ebx,off&
    mov esp,ebx'Stack umlagern
    pop eax'worth read, change and registered letter
    add eax,val&
    push eax
    mov esp,ecx'Stack restore
    'new worth is Result

endproc

 
Nico Madysa
08/24/11  
 



Wow.

thoughts:

offset kamma itself save there addr eh always addr+offset
CompileMarkSeparation
teste time whether the working.
 
08/27/11  
 




Nico
Madysa
working and is rather.
 
08/27/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.239 Views

Untitledvor 0 min.
iF05/08/16
p.specht04/23/16
Georg Teles01/21/15
Michael W.11/02/14
More...

Themeninformationen

this Topic has 2 subscriber:

Nico Madysa (2x)
iF (1x)


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