Home > Back-end >  Assembly statement JNB rewrite
Assembly statement JNB rewrite

Time:11-13

How will the following assembly for C/C + + :

Mov eax, XXXXX (int value)
Sub 300
Add - 23
Sub 15
JNB L1 (tag)

thank you

CodePudding user response:

Forget to write down the eax digital front, I must write:
Mov eax, XXXX
Sub eax, 262
JNB L1
Don't jump to L1, and why?

CodePudding user response:

Mov eax, XXXX
Sub eax, 338
JNB L1

CodePudding user response:

This is equivalent to:
If ((unsigned int) XXXX & gt; Goto L1=338).

CodePudding user response:

refer to the second floor early play big play nuclear response:
mov eax, XXXX
Sub eax, 338
JNB L1

No, I tried, can't do that, must write separately to jump, don't see why,
Such as XXXX=320 before written like jump, it doesn't jump,

Mov eax, XXXX
Sub eax, 300
The add eax, 23
-Sub eax, 15
JNB L1
Must be so just jump, write you so don't jump,

CodePudding user response:

 int XXXXX, eax; 

Eax=XXXXX;//; Mov eax, XXXXX (int value)
Eax -=300;//; Sub 300
Eax +=- 23.//; Add - 23


If ((unsigned int) eax - 15 & gt; 0) goto L1;//; Sub 15
//; JNB L1 (tag)

//...//; .

L1:

CodePudding user response:

 int XXXXX, eax; 

Eax=XXXXX;//; Mov eax, XXXXX (int value)
Eax -=300;//; Sub 300
Eax +=- 23.//; Add - 23
Eax -=15;//; Sub 15
If (eax> Goto L1=0).//; JNB L1 (tag)
//...//; .
L1:

CodePudding user response:

reference 4 floor gbjsy response:
no, I tried, can't do that, must write separately to jump, don't see why,
Such as XXXX=320 before written like jump, it doesn't jump,

Mov eax, XXXX
Sub eax, 300
The add eax, 23
-Sub eax, 15
JNB L1
Must be so just jump, write you so don't jump,

JNB instructions called CMP try before
  • Related