(...)cmp ecx, 48jl warncmp ecx, 57jg warninc ecxwarn: cmp ecx, 97jle stop cmp ecx, 122jge stopmov eax, 4mov ebx, 1mov ecx, alertmov edx, lenint 0x80 warn: (...)
would this work?
thanks, would it work otherwise?
I need to embbed several if statementsif (x=1){x++}else{if (x=2){x=0;}else{if(x=0){x++;}}}
case 0: x++ case 1: x++ case 2: x=0
Hi maplesirop,that looks like a case select:Code: [Select] case 0: x++ case 1: x++ case 2: x=0Is that your goal?Gerhard
if (x=1){ x++}else{ if (x=2) { x=0; } else { if(x=0) { x++; } }}
cmp ecx,1jne elselabel1 inc ecx jmp endiflabel1elselabel1: cmp ecx, 2 jne elselabel2 mov ecx,2 jmp endiflabel2 elselabel2: cmp ecx, 0 jne endiflabel3 ;;jump to endif directly inc ecx endiflabel3: endiflabel2:endiflabel1: