x86-64 Linux NASM. Function parameter passing of type int array declared as a function in C++ file
问题 I tried using this advice for this problem For Linux programming arr[], n, &a, &b are passed in RDI, RSI, RDX and RCX. and the output of the program doesn't sum up the integers in the array properly. It outputs a large number that is obviously wrong. The two files found below were modified from the original 32-bit version found here. http://mcs.uwsuper.edu/sb/224/Intro/c_asm.html What I want is to compile an assembly file that calls a function parameter in a C++ file called array.cpp and then