Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9267317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:31:22+00:00 2026-06-18T14:31:22+00:00

I have a piece of code which uses JNZ. When I assemble and link

  • 0

I have a piece of code which uses JNZ. When I assemble and link the binary, I see my JNZ is replaces with a JNE. I understand that both of them fundamentally are the same. But then why does NASM change it?

Also, is there any config option available to stop this change from happening while assembling?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:31:23+00:00Added an answer on June 18, 2026 at 2:31 pm

    I understand that both of them fundamentally are the same

    JNE and JNZ have the same opcodes (0x75 for short jumps and 0x0f 0x85 for near jumps), so the assembler will create the same machine code for both of them.

    When disassembling, the disassembler does not known anymore which one was used in the source and it has to take one of them.

    Also, is there any config option available to stop this change from happening while assembling?

    No, because it is not a real “replacement” – JNE and JNZ are simply different mnemonics for the same opcodes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a piece of Javascript code that uses an XHR to POST data
I have a piece of code which inserts a link into a p tag
I have a piece of code which works in a way that is unexpected
I have written a piece of code which uses the PdfSharp library. The instance
I have a piece of code which uses the datacontract serializer to serialize and
We have a piece of code which uses PyWin32 and also occasionally calls Py_Finalize()
I have written a piece of code which uses System.ServiceModel.Syndication library to parse RSS
I have a piece of code in ANSI C which uses the time.h library
I have some code which uses System.Net.Mail.SmtpClient.Send to send data from a piece of
I have a piece of code which uses CodeDom to generate code on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.