Wow all i had to do was add 2 numbers to the compile process to make it work lol I cant believe it was that easy.
So it wouldnt work when i try:
Code:
root@ubuntu:/home/ubuntu/Documents# nasm -f elf pause.asm
root@ubuntu:/home/ubuntu/Documents# ld pause.o -o pause
which produces this error:
Code:
ld: i386 architecture of input file `pause.o' is incompatible with i386:x86-64 output
That is actually for 32 bit mode. Now all you have to do for 64 bit mode is add th number 64 after the word elf.
Code:
nasm -f elf64 pause.asm
"AND IT WORKS"