About 396,000 results
Open links in new tab
  1. Returning a value in x86 assembly language - Stack Overflow

    Apr 20, 2019 · In almost all calling conventions for x86, the return value is whatever value is found in eax on return. Thus, by placing the result of the addition in eax , we don't have to do any …

  2. How does callee function jump back to the right place in caller function? How does caller function pass parameters to callee function? Where does callee function store its local variables? How …

  3. How's return value implemented in assembly level?

    Oct 10, 2010 · Yes, when you need to return a value, most compilers will expect it to be in EAX. In hand-written assembly, you're more likely to see other registers used more often (e.g., ESI or …

  4. Understanding how function call works - zhu45.org

    Jul 30, 2017 · In most programming languages, this parameter is passed automatically when the function is called. In assembly language, the call instruction handles passing the return …

  5. Functions in Assembly Language - Electronics Reference

    To return from a function, you use the RET instruction. The RET instruction pops the return address from the stack and jumps to that address, returning control to the caller. When a …

  6. assembly - Return value of a C function to ASM - Stack Overflow

    Sep 13, 2014 · The return value is in eax. If you've called a C function from asm, you can read the return value from eax. If you're trying to return from an asm function to C, store the intended …

  7. x86 Assembly function return variable – Cyber Security …

    Nov 15, 2019 · By the standard of assembly language the return variable for function will be assigned to EAX. I will explain the return using passing variable with reference. Dear Friends, …

  8. Assembly Language & Computer Architecture Lecture (CS 301)

    Defining Functions in Assembly. The instruction "call" is used to call another function. The function can then return using "ret" (call stores the return address to jump back to on the stack, which …

  9. 7.5. Functions in Assembly - Dive into Systems

    #include <stdio.h> int assign(void) { int y = 40; return y; } int adder(void) { int a; return a + 2; } int main(void) { int x; assign(); x = adder(); printf("x is: %d\n", x); return 0; } We compile this code …

  10. Function Call Problems (1) Calling and returning • How does caller function . jump . to callee function? • How does callee function . jump back . to the right place in caller function? (2) …

Refresh