
This is a discussion on to clear things up with the JNZ mnemonic within the Assembly forums, part of the Application Development category; Code: #include <iostream> int main () { int value = 0; __asm { mov eax, 1; //move 1 into the ...
| |||||||
| 108 Online | Register | Projects | Products | Members List | Calendar | Today's Posts | Search |
View Poll Results: Did you find this tutorial useful? | |||
| Yes | | 0 | 0% |
| No | | 0 | 0% |
| Voters: 0. You may not vote on this poll | |||
![]() |
| LinkBack | Thread Tools | Display Modes |
| |||
| to clear things up with the JNZ mnemonic Code: #include <iostream>
int main ()
{
int value = 0;
__asm
{
mov eax, 1; //move 1 into the eax register;
mov ebx, 1; //move 1 into the ebx register;
cmp eax, ebx; //compare eax to ebx; (1-1 = 0);
jnz stop; //jump if the value isn't 0
mov value, 100; //we didn't jump (eax - ebx is 0);
stop:
}
std::cout << value << std::endl;
system ("pause");
return 0;
}
Last edited by trilix; 03-13-2008 at 07:50 AM. |
![]() |
| Tags |
| 8086, assembly, jnz, jump if not zero, x86 |
| |