We are migrating the bug tracker to github Issues. This is now the preferred way to report NASM bugs.
Self-registration is disabled due to spam issue (mail gorcunov@gmail.com or hpa@zytor.com to create an account)
$ cat test2.asm cpu 8086 mov al, byte [edx] $ nasm -v NASM version 2.15rc0 compiled on Nov 22 2019 $ nasm test2.asm -l /dev/stderr -o test2.bin 1 cpu 8086 2 00000000 678A02 mov al, byte [edx] $
Unfortunately, the CPU directives are not well implemented in NASM and need a lot more work. At this point, their main purpose is to handle the cases where it has to generate different code for different CPUs, e.g. jump-overs for long conditional jumps. It is not at all ideal, but unless someone steps up to enhance it, it is unlikely to change.