I am currently learning Assembly language on Linux. I have been using the book \'Programming From the Ground Up\' and all the examples are 32-bit. My OS is 64-bit and I have
please read this What are the calling conventions for UNIX & Linux system calls on x86-64
and note that using int 0x80 for syscall on x64 systems is an old compatibility layer. you should use syscall instruction on x64 systems.
you can still use this old method, but you need to compile your binaries in a x86 mode, see your compiler/assembler manual for details.