NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: suncowiam on July 26, 2022, 02:47:14 PM

Title: nasm changed "lea rcx, ptr[rip+f809]" to "lea rcx, ptr[rip+f802]
Post by: suncowiam on July 26, 2022, 02:47:14 PM
I have a line of asm:
lea rcx, ptr[rip+f809]

nasm assembled this to when disassembled from .o file:
lea rcx, ptr[rip+f802]

Can someone help explain why this happened?

Thanks
Title: Re: nasm changed "lea rcx, ptr[rip+f809]" to "lea rcx, ptr[rip+f802]
Post by: debs3759 on July 26, 2022, 05:37:40 PM
Have you compared a disassembly with another app, to confirm whether the problem lies with nasm or ndisasm?

Which version of nasm are you using? Do you know which version broke it?

Other than that, sorry, I have no idea.

Title: Re: nasm changed "lea rcx, ptr[rip+f809]" to "lea rcx, ptr[rip+f802]
Post by: Frank Kotler on July 26, 2022, 06:27:59 PM
As Debs says, we need more info. Looks like an error to me.

Best,
Frank