JNZ & CMP Assembly Instructions

前端 未结 5 608
北恋
北恋 2021-01-31 18:27

Correct me if I am wrong.

This is my understanding of JNZ and CMP.

JNZ - The jump WILL take place if the Z Fl

5条回答
  •  深忆病人
    2021-01-31 19:12

    JNZ     Jump if Not Zero    ZF=0
    

    Indeed, this is confusing right.

    To make it easier to understand, replace Not Zero with Not Set. (Please take note this is for your own understanding)

    Hence,

    JNZ     Jump if Not Set     ZF=0
    

    Not Set means flag Z = 0. So Jump (Jump if Not Set)

    Set means flag Z = 1. So, do NOT Jump

提交回复
热议问题