Linux x64 Assembly Tutorial 1: Getting a Value from NASM into G++

This tutorial is a remake of the first Windows C and ASM tutorial only I’m using Ubuntu. I’m in Ubuntu here with G and NASM. For a text editor I’m a big fan of the ultra minimalist Nano. We’ll probably have to shift to something a little heavier weight eventually. This tute is just a little example of how to return an integer from assembly to C . We’ll look at inline assembly first using the GNU assembler. This assembler uses AT&T syntax, in the following tutorial we look at how to link a
Back to Top