Author Topic: nasm changed "lea rcx, ptr[rip+f809]" to "lea rcx, ptr[rip+f802]  (Read 1629 times)

Offline suncowiam

  • Jr. Member
  • *
  • Posts: 2
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

Offline debs3759

  • Global Moderator
  • Full Member
  • *****
  • Posts: 221
  • Country: gb
    • GPUZoo
Re: nasm changed "lea rcx, ptr[rip+f809]" to "lea rcx, ptr[rip+f802]
« Reply #1 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.

My graphics card database: www.gpuzoo.com

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: nasm changed "lea rcx, ptr[rip+f809]" to "lea rcx, ptr[rip+f802]
« Reply #2 on: July 26, 2022, 06:27:59 PM »
As Debs says, we need more info. Looks like an error to me.

Best,
Frank