How to compile this asm code under linux with nasm and gcc?
问题 I have the following source snippet from a book that I'm reading now. So I created an asm file and typed exactly. Then used nasm command ( nasm -f elf test.asm ) then tried to compile into an executable file by using gcc ( gcc test.o -o test ) then I get the following error. Error: ld: warning: ignoring file test.o, file was built for unsupported file format which is not the architecture being linked (x86_64) Source code: [BITS 16] [SECTION .text] START: mov dx, eatmsg mov ah, 9 int 21H mov