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:
which produces this error:
root@ubuntu:/home/ubuntu/Documents# nasm -f elf pause.asm
root@ubuntu:/home/ubuntu/Documents# ld pause.o -o pause
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.
ld: i386 architecture of input file `pause.o' is incompatible with i386:x86-64 output
"AND IT WORKS"
nasm -f elf64 pause.asm