New answers tagged

3

je is normally used with cmp instruction like cmp Reg16/32/64,const je someplace while jz is normally used to check specifically for 0 or null like dec reg16/32/64 jz someplace i just modified your code to an infinite loop and emulated it in x86 emulator see below for code and gif. code mov ax, 0x2 dec ax and ax, 0x1 jz equal je equal test ax,...


1

here is the sample code that will show both the constructs if there is an atomic exchange requirement you use the api or intrinsc provided else simply assign source #include <stdio.h> #include <windows.h> #include <intrin.h> long tmp[10] = {NULL}; long *m_someMemoryPool[10] ={NULL}; int main (void) { tmp[0] = 0xbee5deed; long foo ...


Top 50 recent answers are included