Inline assembly in C.
Amazon Auto Links: No products found.
Author: Engineer's Heaven
Can you explain me how to know that exactly at 8(%ebp) and 12(%ebp) are inputs val_1, val_2? I just don’t get this part.
Make a Video about Interrupt using inline assembly
i understand that these video is for Inline Assembly, but do you have a video for add a *.asm file on project?
Must you install an assembler beside the compiler for this?
Why do my compiler say that the sum function is not defined?
i’m trying testing your code without sucess 🙁
using namespace std;
int sum(int parameter1, int parameter2);
cout << sum(100,200);
" pushl %ebp;"
" movl %esp, %ebp;"
" movl 8(%ebp), %eax;"
" addl 12(%ebp), %eax;"
" movl %ebp, %esp;"
" popl %ebp;"
i get 2 errors: "invalid instruction suffix for `push'" and the same for 'pop'.
can you advice me more?
Does the use of inline assembly need some other installation other than code blocks?