Relative Content

Tag Archive for assemblyx86-64nasm

Can NASM be forced to generate mov with offset of 0?

My question I have tried using NASM’s strict keyword and -O0 to inhibit it from turning mov dword [rdi+0], 0xab into mov dword [rdi], 0xab, but haven’t been successful. My hunch is that the +0 gets preprocessed, or that it is such a simple “optimization” that it can’t be disabled, but I don’t know NASM […]