How to pass an array by reference in assembly language? -


I have 2 functions in the form of a call CountChar and DisplayResult I am going to pass the charInput array as a reference to the DisplayResult function from the CountChar function? Any help would be really appreciated. Thank you.

  Counttek Prok Pusad Xer EX, EX XAR EBX, EBX X & X, ADX MOS ASI, MOM ECX, Befis L1: MUL Al, Buffer [SSi] MP DL, Charinput [EX] Inc. DL mov charInput [eax], dl; How to pass the four inputs as reference ???? Inc. AC Loop L1; End Loop Popped Rit Counter ENDP Display Result Process Pusad; Any way to retrieve the charInput from above for display ??? A pointer indicator is an indicator that is an indicator. In the data, an indicator is the same number of bits as an indicator for the code.  

First,

First,

DisplayResult PROC, the_vector: Dword

  mov eax, the_vector; The value passed to "the_vector" eX call eax ret  

DisplayResult endp

or

the DisplayResult PROC pop transfers to ADX; POP return vector pop eax; POP function vector push edx; Save the return vector for 'rate' which will be done by [AX] JMPEX; Go to eX who will tell us what we display

Get rid of all the pushed / popped stuff, it waste time. Only push the required registers and use only those registers which are expected to be destroyed.

Assembly language is meant to take advantage of minor items, so that it will help you in the end; Otherwise, use C.

The C prototype for DisplayResult should be something like this:

Exceran empty performance (zero *);

When you call it, enter the function name as zero * like this:

DisplayResult ((* Zero *) my_function);


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -