Whenever using NASM, and syntactic I get the warning

instruction not supported in 16-bit mode

How do I provide the argument to tell it to not use 16-bit mode?


This is the default in NASM, try using the BITS directive by putting

BITS 64;

at the top of the .asm file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.